--- title: Fieldset description: A native fieldset element with a legend. links: doc: https://base-ui.com/react/components/fieldset#api-reference --- ## Installation CLI Manual ```bash npx shadcn@latest add @coss/fieldset ``` Install the following dependencies: ```bash npm install @base-ui/react ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Fieldset, FieldsetLegend } from "@/components/ui/fieldset" ``` ```tsx
Fieldset legend
``` ## 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.