form-input-fields
Version:
A customizable form field components built with TypeScript
16 lines • 839 B
TypeScript
import { default as React } from 'react';
import { FieldProps } from 'formik';
import { TextFieldProps } from '@mui/material';
export interface FormTextFieldProps extends FieldProps, Omit<TextFieldProps, 'name' | 'value' | 'onChange' | 'onBlur'> {
/** Custom onChange handler that will override Formik's default */
onChange?: (value: any) => void;
/** Custom onBlur handler that will override Formik's default */
onBlur?: (e: React.FocusEvent<any, Element>) => void;
/**
* The variant to use for the MUI TextField ('standard', 'outlined', 'filled')
* @default 'standard'
*/
variant?: 'standard' | 'outlined' | 'filled';
}
export declare const FormTextField: React.MemoExoticComponent<(props: FormTextFieldProps) => import("react/jsx-runtime").JSX.Element>;
//# sourceMappingURL=FormTextField.d.ts.map