Function
Label
({
className,
...props
}: React.ComponentProps<typeof LabelPrimitive.Root>)
Source from the content-addressed store, hash-verified
| 6 | import { cn } from "@/lib/utils" |
| 7 | |
| 8 | function Label({ |
| 9 | className, |
| 10 | ...props |
| 11 | }: React.ComponentProps<typeof LabelPrimitive.Root>) { |
| 12 | return ( |
| 13 | <LabelPrimitive.Root |
| 14 | data-slot="label" |
| 15 | className={cn( |
| 16 | "flex items-center gap-2 text-sm font-medium leading-none text-[var(--color-text-weak)] select-none", |
| 17 | "peer-disabled:cursor-not-allowed peer-disabled:opacity-50", |
| 18 | className |
| 19 | )} |
| 20 | {...props} |
| 21 | /> |
| 22 | ) |
| 23 | } |
| 24 | |
| 25 | export { Label } |
Callers
nothing calls this directly
Tested by
no test coverage detected