8 lines
312 B
TypeScript
8 lines
312 B
TypeScript
import { forwardRef, type LabelHTMLAttributes } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export const Label = forwardRef<HTMLLabelElement, LabelHTMLAttributes<HTMLLabelElement>>(
|
|
({ className, ...props }, ref) => <label ref={ref} className={cn(className)} {...props} />
|
|
);
|
|
Label.displayName = "Label";
|