@ucam/design-system
Version:
University of Cambridge Design System
24 lines (23 loc) • 722 B
TypeScript
import { FC } from 'react';
import { FormControlProps } from '@material-ui/core/FormControl';
import { CustomInputProps } from '../Input/Input';
export declare type TextFieldProps = CustomInputProps & {
/**
* Label text displayed to describe the TextField's expected input
*/
label: string;
/**
* Hint text displayed to assist user in completeing the TextField
*/
hint?: string;
/**
* Feedback text displayed to communicate state changes
*/
feedback?: string;
/**
* Props to override on the FormControl component
*/
formControlProps?: FormControlProps;
};
declare const TextField: FC<TextFieldProps>;
export default TextField;