mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 06:16:37 +08:00
21 lines
482 B
TypeScript
21 lines
482 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 leading-none font-medium text-[var(--foreground-primary)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
),
|
|
);
|
|
|
|
Label.displayName = 'Label';
|
|
|
|
export { Label };
|