profileShare

rasmusjy / roundtable

Read-only snapshot

No repository description.

main default branch 181 files Expires Sep 13, 2026, 9:06 AM
label.tsx 575 bytes
1 'use client';
2
3 import * as LabelPrimitive from '@radix-ui/react-label';
4 import * as React from 'react';
5 import { cn } from '@/lib/utils';
6
7 const Label = React.forwardRef<
8 React.ElementRef<typeof LabelPrimitive.Root>,
9 React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
10 >(({ className, ...props }, ref) => (
11 <LabelPrimitive.Root
12 ref={ref}
13 className={cn('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className)}
14 {...props}
15 />
16 ));
17 Label.displayName = LabelPrimitive.Root.displayName;
18
19 export { Label };
20