import React, { Component } from 'react'; import './FieldLabel.css'; export type FieldLabelProps = { /** * Sets or returns the value of the for attribute of a label. It specifies to which form element the label is bound to */ htmlFor: string; /** * Pass the class names to be appended to this prop */ className?: string; /** * Pass an ID that you can use for testing purposes. It is applied as a data attribute (data-test-id) */ testId?: string; /** * Sets whether it is mandatory to input FieldLabel */ required?: boolean; /** * Pass a custom message that can be added instead of the default text */ requiredText?: string; /** * Indicates an error */ error?: boolean; /** * Sets it in the disabled state */ disabled?: boolean; /** * Add child elements defined within a component */ children?: React.ReactNode; /** * Pass a help text that can be displayed on hover of icon */ helpText?: React.ReactNode; version?: 'v2'; labelTooltip?: string; }; export declare class FieldLabel extends Component { renderHelpText: () => React.JSX.Element; render(): React.JSX.Element; } export default FieldLabel;