mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 22:26:38 +08:00
22 lines
465 B
TypeScript
22 lines
465 B
TypeScript
import * as React from 'react';
|
|
|
|
import { cn } from '@/lib/utils/cn';
|
|
|
|
const Label = React.forwardRef<
|
|
HTMLLabelElement,
|
|
React.ComponentProps<'label'>
|
|
>(({ className, ...props }, ref) => (
|
|
<label
|
|
ref={ref}
|
|
className={cn(
|
|
'text-sm font-medium leading-none text-[var(--foreground-primary)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
));
|
|
|
|
Label.displayName = 'Label';
|
|
|
|
export { Label };
|