import * as React from "react" import * as LabelPrimitive from "@radix-ui/react-label" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "../libs/utils" const labelVariants = cva( "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" ) type LabelProps = React.ComponentPropsWithoutRef & VariantProps & { required?: boolean } const Label: React.ForwardRefExoticComponent>> = React.forwardRef< React.ElementRef, LabelProps >(({ className, required, ...props }, ref) => ( {props.children} {required && *} )) Label.displayName = LabelPrimitive.Root.displayName export { Label }