import { CommonProps, Refable, type Styleable } from "@trackunit/react-components"; import { ReactElement, ReactNode } from "react"; export interface LabelProps extends CommonProps, Refable, Styleable { /** * ID of the label. */ id?: string; /** * Specifies the element to which the label belongs to. */ htmlFor?: string; /** * The label value. */ children?: ReactNode; /** * Whether the label is disabled or not. */ disabled?: boolean; /** * A boolean flag to set invalid mode * can be used for indicating errors */ isInvalid?: boolean; } /** * Label renders a styled `