Skip to content

Commit 83c3a10

Browse files
committed
wip: label.tsx
1 parent aab66b5 commit 83c3a10

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/components/ui/label.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ const labelVariants = cva(
1010
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
1111
);
1212

13-
const Label = React.forwardRef<
14-
React.ElementRef<typeof LabelPrimitive.Root>,
15-
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
16-
VariantProps<typeof labelVariants>
17-
>(({ className, ...props }, ref) => (
13+
const Label = ({
14+
className,
15+
ref,
16+
...props
17+
}: React.ComponentPropsWithRef<typeof LabelPrimitive.Root> &
18+
VariantProps<typeof labelVariants>) => (
1819
<LabelPrimitive.Root
1920
ref={ref}
2021
className={cn(labelVariants(), className)}
2122
{...props}
2223
/>
23-
));
24+
);
2425
Label.displayName = LabelPrimitive.Root.displayName;
2526

2627
export { Label };

0 commit comments

Comments
 (0)