import React, { FocusEventHandler } from 'react'; import { FormControlTypeMap } from '@material-ui/core'; import { Field } from 'formik'; import { TextField, TextFieldProps } from 'formik-material-ui'; interface IProps extends Omit { property: string; className?: string; label?: string; variant?: FormControlTypeMap['props']['variant']; required?: boolean; disabled?: boolean; type?: string; wrapperProps?: { onBlur: FocusEventHandler; }; } export function FormInput({ wrapperProps, ...props }: IProps) { const variant = props.variant ?? 'filled'; const type = props.type ?? 'text'; return (
); }