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

23 lines
611 B
TypeScript
Raw Normal View History

2025-10-14 13:49:25 +00:00
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
2025-05-05 17:11:44 +00:00
2025-10-14 13:49:25 +00:00
import { cn } from "@repo/shadcn-ui/lib/utils"
2025-05-05 17:11:44 +00:00
2025-10-14 13:49:25 +00:00
function Label({
className,
...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
2025-05-05 17:11:44 +00:00
return (
<LabelPrimitive.Root
2025-10-14 13:49:25 +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-10-14 13:49:25 +00:00
)
2025-05-05 17:11:44 +00:00
}
2025-10-14 13:49:25 +00:00
export { Label }