Uecko_ERP/packages/shadcn-ui/src/components/label.tsx

22 lines
627 B
TypeScript
Raw Normal View History

2025-09-21 19:10:05 +00:00
"use client";
2025-05-05 17:11:44 +00:00
2025-09-21 19:10:05 +00:00
import * as LabelPrimitive from "@radix-ui/react-label";
import * as React from "react";
2025-05-05 17:11:44 +00:00
2025-09-21 19:10:05 +00:00
import { cn } from "@repo/shadcn-ui/lib/utils";
2025-05-05 17:11:44 +00:00
2025-09-21 19:10:05 +00:00
function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
2025-05-05 17:11:44 +00:00
return (
<LabelPrimitive.Root
2025-09-21 19:10:05 +00:00
data-slot='label'
2025-05-05 17:11:44 +00:00
className={cn(
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
className
)}
{...props}
/>
2025-09-21 19:10:05 +00:00
);
2025-05-05 17:11:44 +00:00
}
2025-09-21 19:10:05 +00:00
export { Label };