Alternatives
- CheckboxGroup — For grouped checkboxes.
- RadioGroup — For grouped radio buttons.
Usage
Whenever a caption is needed to provide information about a related set of
controls consider the Fieldset
component.
Example
Use the Fieldset
to group thematically related controls in a form.
Legend appearance
Use the legendAppearance
prop in circumstances where fields should be
semantically grouped for screen readers, but presented as a single field for
sighted users.