Fieldset
Groups related form controls together under a descriptive header, making long or complex forms easier to read and understand.
664 B
•Updated on August 21, 2026
Installation
Bash
pnpm dlx shadcn@latest add @spaceui/primitives-fieldsetUsage
Code
import { Fieldset, FieldsetLegend } from '@/components/ui/fieldset'Code
<Fieldset>
<FieldsetLegend>Fieldset legend</FieldsetLegend>
</Fieldset>Anatomy
Code
<Fieldset>
<FieldsetLegend />
<FieldsetContent />
</Fieldset>API Reference
Fieldset
Root component. Styled wrapper for Fieldset.Root from Base UI with flex column layout.
FieldsetLegend
Legend for the fieldset. Styled wrapper for Fieldset.Legend from Base UI with semibold font weight.
Powered by