import React from 'react'; export interface LabelProps { /** * The label text that appears above the form element. */ children?: React.ReactNode; /** * `id` of the form field that's associated with the `label`. Clicking on the label text will * switch the browser's focus to the form field. * * The Label's `for` and form field's `id` prop must match and be unique to the page. You can * use [Lodash's `uniqueId`](https://lodash.com/docs/4.17.10#uniqueId) to generate a unique id. */ for?: string; /** * Visually disable the label. */ isDisabled?: boolean; /** * Changes the label text color to red. */ hasError?: boolean; /** * A selector to hook into the React component for use in automated testing environments. */ dataTestId?: string; /** * A selector to hook into the React component for use in automated testing environments. * @deprecated Deprecated in favor of the `dataTestId` prop */ dataTest?: string; } export default function Label({ isDisabled, hasError, for: forProp, dataTest, dataTestId, children, }: LabelProps): JSX.Element; //# sourceMappingURL=index.d.ts.map