import { forwardRef, type LabelHTMLAttributes } from "react"; import { cn } from "../lib/cn.js"; /** Props accepted by Label. */ export type LabelProps = { /** Adds a quiet "Optional" readout after the text. */ optional?: boolean; required?: boolean; } & LabelHTMLAttributes; /** A label primitive that associates caller-provided text with a form control. */ export const Label = forwardRef(function Label( { children, className, optional, required, ...props }, ref, ) { return ( ); });