import type { ReactNode } from 'react'; import React from 'react'; export type LabelProps = { /** * CSS class names that can be appended to the component. */ className?: string; /** * Indicates disabled state of the input. */ disabled?: boolean; /** * HTML `for` attribute, which maps the label to an associated input `id` */ htmlFor?: string; /** * HTML id for the component */ id?: string; /** * Slot for node to appear directly after field label. Typically used to include a Toolip */ labelAfter?: ReactNode; /** * **Deprecated.** Has no effect: it renders no indicator and sets no attribute. Mark the * associated input as required instead. * * @deprecated TODO(next-major): remove. */ required?: boolean; /** * The label text string */ text: ReactNode; }; /** * ## Usage * * Text styling used for selection controls like `Radio` and `Checkbox`. This component should not * generally be used, except on custom radio or checkbox components. * * Pair `htmlFor` with the control's `id` so the label and the control are associated. `Radio.Label` * is this component, and `Checkbox` and `Toggle` render it for you. * * `labelAfter` is a trailing slot beside the label text, typically used for a `Tooltip`. */ export declare const Label: { ({ className, disabled, htmlFor, id, labelAfter, required, text, ...other }: LabelProps): React.JSX.Element; displayName: string; };