hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import type { ComponentProps } from "solid-js"; |
| 2 | import { splitProps } from "solid-js"; |
| 3 | import { cn } from "@/lib/cn"; |
| 4 | |
| 5 | export type LabelProps = ComponentProps<"label">; |
| 6 | |
| 7 | export function Label(props: LabelProps) { |
| 8 | const [local, rest] = splitProps(props, ["class"]); |
| 9 | return ( |
| 10 | <label |
| 11 | class={cn( |
| 12 | "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", |
| 13 | local.class, |
| 14 | )} |
| 15 | {...rest} |
| 16 | /> |
| 17 | ); |
| 18 | } |