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

19 lines (18 loc) 1.05 kB
/// <reference types="react" /> import { FormControlProps } from '@mui/material/FormControl'; import { FormHelperTextProps } from '@mui/material/FormHelperText'; import { InputLabelProps } from '@mui/material/InputLabel'; import { SelectProps as MuiSelectProps } from '@mui/material/Select'; import { FieldProps } from 'formik'; export interface SelectProps extends FieldProps, Omit<MuiSelectProps, 'name' | 'value'> { formControl?: FormControlProps; formHelperText?: FormHelperTextProps; inputLabel?: InputLabelProps; } export declare function fieldToSelect({ disabled, field: { onBlur: _onBlur, onChange: fieldOnChange, ...field }, form: { isSubmitting, touched, errors, setFieldTouched, setFieldValue }, onClose, ...props }: Omit<SelectProps, 'formControl' | 'formHelperText' | 'inputLabel'>): MuiSelectProps & { formError: any; }; export declare function Select({ formControl, inputLabel, formHelperText, ...selectProps }: SelectProps): JSX.Element; export declare namespace Select { var displayName: string; }