forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

label.tsx18 lines, 468 bytesHistoryRawDownload
1import type { ComponentProps } from "solid-js";
2import { splitProps } from "solid-js";
3import { cn } from "@/lib/cn";
4
5export type LabelProps = ComponentProps<"label">;
6
7export 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}