import * as React from 'react'; import type { BDSForwardRef } from '../utils/typings/BDSComponentProps'; import type { TextInputProps, TextInputRef } from '../TextInput'; /** * Backyard React Text Field * * Standard text input that extends `TextInput` for functionality * * * * To include helper text, use `FormControl` and `FormHelperText` to sync states * * * * Enter a username * */ declare const TextField: BDSForwardRef; declare type TextFieldRef = TextInputRef; interface TextFieldProps extends TextInputProps { /** * Icon displayed before text */ icon?: React.ReactElement; /** * Info after text input */ info?: string; /** * Prop types to override info with */ infoProps?: object; } export { TextField }; export type { TextFieldProps, TextFieldRef }; export default TextField;