Fields grouped under a legend, in an inset card on the tray.
FreeWeb and MobileMotion
Preview
npx shadcn add @fetaui/fieldsetPlayground
Notifications
Choice card
Delivery address
Budget
Profile
Icons animation
Disabled
Motion
Installation
Terminal· bash
npx shadcn add @fetaui/fieldset
Delivery address
FieldRow pairs short fields, and disabled locks every control in the set.
Disabled
Accessibility
- A native fieldset and legend, so the group is announced.
- Disabling the fieldset disables every control in it.
Motion
- Fieldset has no motion of its own. The controls inside keep theirs.
Responsive behavior
- FieldRow is two up on Web and stacks on Mobile.
Performance
- No hooks and no client directive, so it adds no JavaScript of its own and renders on the server.
Note for AI
Give your coding assistant the Markdown reference instead of screenshots.
- Import
FieldsetandFieldRowfrom@/components/fetaui/fieldset. - It is a native fieldset, so
disabledblocks every control inside and any fieldset attribute passes through. FieldRowtakes two fields, side by side on Web and stacked on Mobile.- The demo's Save and Cancel buttons do nothing. Wrap the set in your own form.
Related
FieldComponentLabel, control and help text as one unit, so they read, validate and announce together.Radio GroupComponentPick exactly one. A surface circle that fills to an ink disc with a dot.CheckboxComponentToggles between checked and not checked, with an indeterminate value for parents of a list.SwitchComponentTurns a setting on or off and applies it at once.InputComponentThe single line text control: a pill on the tray fill that lifts onto the surface when focused.