Skip to content

Commit e18110a

Browse files
committed
minor fixes - FINAL
1 parent f824e32 commit e18110a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

client/src/components/ui/label.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import * as React from "react";
2+
import * as LabelPrimitive from "@radix-ui/react-label";
3+
4+
import { cn } from "@/lib/utils";
5+
6+
function Label({
7+
className,
8+
...props
9+
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
10+
return (
11+
<LabelPrimitive.Root
12+
data-slot="label"
13+
className={cn(
14+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
15+
className,
16+
)}
17+
{...props}
18+
/>
19+
);
20+
}
21+
22+
export { Label };

0 commit comments

Comments
 (0)