This component is returned by
useForm().<Fieldset /> groups related form inputs together under a descriptive legend. It can contain either:
- A single
<RadioGroup /> - Multiple
<Checkbox />inputs
When checkboxes are wrapped in a
<Fieldset />, their labels are rendered on the right side of the checkbox instead of above it.Example with RadioGroup
fieldset-radio-dialog.tsx
Example with Checkboxes
fieldset-checkbox-dialog.tsx
Props
The legend text for the fieldset, which acts as a label for the group of inputs.
Either a single
<RadioGroup /> or multiple <Checkbox /> inputs.