Files
OpenFlare/openflare-server/web/components/ui/label.tsx
T
2026-06-06 10:46:40 +08:00

21 lines
480 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 };