UNPKG

@platformbuilders/react-elements

Version:

Platform Builders Shared Components Library For React Web

28 lines 1.05 kB
import { ChangeEvent, FocusEvent } from 'react'; import { InputBaseComponentProps } from '@material-ui/core'; export declare type TextInputType = { mask?: string; maskType?: string; formatChars?: { [key: string]: string; }; label?: string; error?: string | boolean; placeholder?: string; fullWidth?: boolean; name: string; id: string; type: string; maxlength?: string; pattern?: string; value: string | number | string[] | undefined; autoFocus?: boolean; multiline?: boolean; variant?: InputVariants; inputProps?: InputBaseComponentProps; onChange?: (e: ChangeEvent<HTMLInputElement>) => void; onBlur?: (e: FocusEvent<HTMLInputElement | HTMLTextAreaElement> | ChangeEvent<HTMLDivElement>) => void; onFocus?: ((e: FocusEvent<HTMLInputElement | HTMLTextAreaElement> | ChangeEvent<HTMLDivElement>) => void) | undefined; }; export declare type InputVariants = 'filled' | 'standard' | 'outlined'; //# sourceMappingURL=TextInput.d.ts.map