import * as LabelPrimitive from "@radix-ui/react-label"; import { cva, type VariantProps } from "class-variance-authority"; import * as React from "react"; import { cn } from "../hooks"; const labelVariants = cva( [ "font-normal", "leading-none", "peer-disabled:cursor-not-allowed", "peer-disabled:opacity-70", "text-nowrap", "overflow-ellipsis", ], { variants: { size: { xs: "text-xxs", sm: "text-xs", lg: "text-md", hint: "text-hint text-muted-foreground", }, }, defaultVariants: { size: "sm", }, }, ); type LabelProps = React.ComponentPropsWithoutRef & VariantProps & { size?: "xs" | "sm" | "lg" | "hint"; }; const Label = React.forwardRef, LabelProps>( ({ className, size, ...props }, ref) => ( ), ); Label.displayName = LabelPrimitive.Root.displayName; export { Label };