Files
Epicnabbo-Catalogus-Updated…/src/components/ui/label.tsx
T

27 lines
653 B
TypeScript

"use client";
import type * as React from "react";
import { cn } from "@/lib/utils";
function Label({
className,
htmlFor,
...props
}: React.ComponentProps<"label">) {
return (
// biome-ignore lint/a11y/noLabelWithoutControl: reusable component, input is associated via htmlFor at usage site
<label
data-slot="label"
htmlFor={htmlFor}
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}
/>
);
}
export { Label };