We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f824e32 commit e18110aCopy full SHA for e18110a
client/src/components/ui/label.tsx
@@ -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
16
+ )}
17
+ {...props}
18
+ />
19
+ );
20
+}
21
22
+export { Label };
0 commit comments