Function
FieldLegend
({
className,
variant = "legend",
...props
}: React.ComponentProps<"legend"> & { variant?: "legend" | "label" })
Source from the content-addressed store, hash-verified
| 21 | } |
| 22 | |
| 23 | function FieldLegend({ |
| 24 | className, |
| 25 | variant = "legend", |
| 26 | ...props |
| 27 | }: React.ComponentProps<"legend"> & { variant?: "legend" | "label" }) { |
| 28 | return ( |
| 29 | <legend |
| 30 | data-slot="field-legend" |
| 31 | data-variant={variant} |
| 32 | className={cn( |
| 33 | "mb-2.5 font-medium data-[variant=label]:text-xs data-[variant=legend]:text-sm", |
| 34 | className |
| 35 | )} |
| 36 | {...props} |
| 37 | /> |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | function FieldGroup({ className, ...props }: React.ComponentProps<"div">) { |
| 42 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected