
This component is returned by
useForm().The
Fieldset API is experimental and may change in the future. It has been marked as @deprecated to remind the developer that it is experimental. It is not "deprecated", just experimental. Please don't use it in production versions of your app. We do not guarantee backward compatibility, or that the API will remain stable.<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.