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

15 lines (14 loc) 788 B
/// <reference types="react" /> import { FieldProps } from 'formik'; import { FormControlProps } from '@mui/material/FormControl'; import { InputLabelProps } from '@mui/material/InputLabel'; import { InputProps } from '@mui/material/Input'; export interface SimpleFileUploadProps extends FieldProps { label: string; accept: string; disabled?: boolean; InputProps?: Omit<InputProps, 'name' | 'type' | 'label'>; InputLabelProps?: InputLabelProps; FormControlProps?: FormControlProps; } export declare const SimpleFileUpload: ({ field, form: { isSubmitting, touched, errors, setFieldValue }, label, accept, disabled, InputProps: inputProps, InputLabelProps: inputLabelProps, FormControlProps: formControlProps, }: SimpleFileUploadProps) => JSX.Element;