UNPKG

formik-material-ui

Version:

![](https://github.com/stackworx/formik-material-ui/workflows/Build%20formik-material-ui/badge.svg) ![](https://github.com/stackworx/formik-material-ui/workflows/Build%20formik-material-ui-lab/badge.svg) [![license](https://badgen.now.sh/badge/license/MIT

11 lines (10 loc) 626 B
/// <reference types="react" /> import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField'; import { FieldProps } from 'formik'; export interface TextFieldProps extends FieldProps, Omit<MuiTextFieldProps, 'name' | 'value' | 'error'> { } export declare function fieldToTextField({ disabled, field: { onBlur: fieldOnBlur, ...field }, form: { isSubmitting, touched, errors }, onBlur, helperText, ...props }: TextFieldProps): MuiTextFieldProps; export declare function TextField({ children, ...props }: TextFieldProps): JSX.Element; export declare namespace TextField { var displayName: string; }