pelagia-portal/App/components/ui/label.tsx
2026-05-18 23:18:58 +05:30

17 lines
445 B
TypeScript

import * as LabelPrimitive from "@radix-ui/react-label";
import { cn } from "@/lib/utils";
export function Label({
className,
...props
}: React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>) {
return (
<LabelPrimitive.Root
className={cn(
"block text-sm font-medium text-neutral-700 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
className
)}
{...props}
/>
);
}