Fieldset
cubby-ui/fieldsetFreeComponent
A fieldset component.
Live preview
live · rendered by the registry
Rendered by cubby-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://cubby-ui.dev/r/fieldset.jsonSource
1"use client";23import { Fieldset as BaseFieldset } from "@base-ui/react/fieldset";45import { cn } from "@/lib/utils";67function Fieldset({ className, ...props }: BaseFieldset.Root.Props) {8 return (9 <BaseFieldset.Root10 data-slot="fieldset"11 className={cn("grid gap-4 border-none p-0", className)}12 {...props}13 />14 );15}1617function FieldsetLegend({ className, ...props }: BaseFieldset.Legend.Props) {18 return (19 <BaseFieldset.Legend20 data-slot="fieldset-legend"21 className={cn("text-foreground text-base font-semibold leading-6", className)}22 {...props}23 />24 );25}2627export { Fieldset, FieldsetLegend };
Files it writes
More from cubby-ui
All 79 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | cubby-ui | Components | Free | 2 deps | |
| Alertalert | cubby-ui | Components | Free | 1 dep | |
| Alert-dialogalert-dialog | cubby-ui | Components | Free | 2 deps | |
| Aspect-ratioaspect-ratio | cubby-ui | Components | Free | no deps | |
| Autocompleteautocomplete | cubby-ui | Components | Free | 2 deps | |
| Avataravatar | cubby-ui | Components | Free | 1 dep | |
| Badgebadge | cubby-ui | Components | Free | 1 dep | |
| Base Drawerbase-drawer | cubby-ui | Components | Free | 2 deps |
