import React, { RefObject } from 'react'; import { IconProps } from 'components/Icon'; export interface TextInputProps extends React.DetailedHTMLProps, HTMLInputElement> { /** Control aria-label */ 'aria-label'?: string; /** Control whether input has error styling */ hasError?: boolean; /** Control whether label receives a bold treatment */ isLabelBold?: boolean; /** Displays as red error text below input */ errorText?: string; /** Label used for `label` element */ label: string; /** * FDS Icon _reference_ * `IconLeft={StarFilledIcon}` */ IconLeft?: React.ComponentType; /** * FDS Icon _reference_ * `IconRight={StarFilledIcon}` */ IconRight?: React.ComponentType; /** String to place to the left of the input. Not a substitute for a label! */ before?: string; /** String to place to the right of the input. Not a substitute for a label! */ after?: string; /** Controls where the label renders */ labelPosition?: 'top' | 'left'; /** Specify width of label (useful for when label is positioned to left */ labelWidth?: string; showRequired?: boolean; showLabel?: boolean; ref?: RefObject; } declare const TextInput: React.ForwardRefExoticComponent & React.RefAttributes>; export default TextInput;