import { type ReactElement } from "react"; import * as React from "react"; import { cn } from "@/lib/utils"; export type LabelProps = React.ComponentProps<"label"> & { /** When true, renders a red asterisk after the label text to indicate a required field */ required?: boolean; }; function Label({ className, required, children, ...props }: LabelProps): ReactElement { return ( // eslint-disable-next-line jsx-a11y/label-has-associated-control -- htmlFor is passed by the consumer ); } export { Label };