Vendaweb-portal/components/ui/label.tsx

27 lines
505 B
TypeScript
Raw Permalink Normal View History

2026-01-08 12:09:16 +00:00
import * as React from "react";
import { cn } from "../../lib/utils";
export interface LabelProps
extends React.LabelHTMLAttributes<HTMLLabelElement> {}
const Label = React.forwardRef<HTMLLabelElement, LabelProps>(
({ className, ...props }, ref) => {
return (
<label
ref={ref}
className={cn(
"block text-sm font-bold text-slate-700 mb-2",
className
)}
{...props}
/>
);
}
);
Label.displayName = "Label";
export { Label };