import React, { type ReactNode } from 'react'; import type { Size } from '../../util/variant-types'; export type FieldLabelProps = { /** * Text to render in label. */ children: ReactNode; /** * ID of the element */ id?: string; /** * Additional classnames passed in for styling. */ className?: string; /** * ID of input that label is associated with. */ htmlFor?: string; /** * Indicates disabled state of the input. */ disabled?: boolean; /** * Size of the label. * * **Default is `"lg"`**. */ size?: Extract; }; /** * ## Usage * * `FieldLabel` is used to add a label to EDS's controls (e.g., `InputField`, `TextareaField`, * `Select`, `Combobox`). This component should not be used in isolation, but can be used to label * any custom input controls. * * Pair `htmlFor` with the control's `id` so the label and the control are associated. The EDS * controls that render a label for you also expose it as a subcomponent, so `InputField.Label` and * `TextareaField.Label` are this component. * * For guidance on how to word a label, see the do's and don'ts on the control itself (for example, * `InputField`). */ export declare const FieldLabel: React.ForwardRefExoticComponent>;