Skip to content

Fieldset

A native fieldset element with a legend.

API Reference

Installation

pnpm dlx shadcn@latest add @frontal-labs/fieldset

Usage

import { Fieldset, FieldsetLegend } from "@/components/ui/fieldset";
<Fieldset>
  <FieldsetLegend>Fieldset legend</FieldsetLegend>
</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.