Function
Label
({
className,
render,
...props
}: useRender.ComponentProps<"label">)
Source from the content-addressed store, hash-verified
| 4 | import { cn } from "@/lib/utils"; |
| 5 | |
| 6 | function Label({ |
| 7 | className, |
| 8 | render, |
| 9 | ...props |
| 10 | }: useRender.ComponentProps<"label">) { |
| 11 | const defaultProps = { |
| 12 | className: cn( |
| 13 | "inline-flex items-center gap-2 text-base/4.5 sm:text-sm/4 font-medium", |
| 14 | className, |
| 15 | ), |
| 16 | "data-slot": "label", |
| 17 | }; |
| 18 | |
| 19 | return useRender({ |
| 20 | defaultTagName: "label", |
| 21 | props: mergeProps<"label">(defaultProps, props), |
| 22 | render, |
| 23 | }); |
| 24 | } |
| 25 | |
| 26 | export { Label }; |
Callers
nothing calls this directly
Tested by
no test coverage detected