Components
- Accordion
- Alert
- Alert Dialog
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Button
- Card
- Checkbox
- Checkbox Group
- Collapsible
- Combobox
- Dialog
- Field
- Fieldset
- Form
- Frame
- Group
- Input
- Label
- Menu
- Meter
- Number Field
- Pagination
- Popover
- Preview Card
- Progress
- Radio Group
- Scroll Area
- Select
- Separator
- Sheet
- Slider
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Toolbar
- Tooltip
Resources
Fieldset
A native fieldset element with a legend.
import {
Field,
FieldControl,
FieldDescription,
FieldLabel,
} from "@/components/ui/field"
import { Fieldset, FieldsetLegend } from "@/components/ui/fieldset"
export function FieldsetDemo() {
return (
<Fieldset>
<FieldsetLegend>Billing Details</FieldsetLegend>
<Field>
<FieldLabel>Company</FieldLabel>
<FieldControl type="text" placeholder="Enter company name" />
<FieldDescription>
The name that will appear on invoices.
</FieldDescription>
</Field>
<Field>
<FieldLabel>Tax ID</FieldLabel>
<FieldControl
type="text"
placeholder="Enter tax identification number"
/>
<FieldDescription>
Your business tax identification number.
</FieldDescription>
</Field>
</Fieldset>
)
}
Installation
pnpm dlx shadcn@latest add https://coss.com/ui/r/fieldset.json
Usage
import { Fieldset, FieldsetLegend } from "@/components/ui/fieldset"
<Fieldset>
<FieldsetLegend>Fieldset legend</FieldsetLegend>
</Fieldset>
On This Page