UNPKG

mui-rff

Version:

Set of modern wrapper components to facilitate using Material UI with React Final Form

15 lines (14 loc) 644 B
import { default as React } from 'react'; import { DatePickerProps as MuiDatePickerProps, PickerValidDate } from '@mui/x-date-pickers'; import { TextFieldProps } from '@mui/material/TextField'; import { FieldProps } from 'react-final-form'; import { ShowErrorFunc } from './Util'; export interface DatePickerProps extends Partial<Omit<MuiDatePickerProps<PickerValidDate>, 'onChange'>> { fieldProps?: Partial<FieldProps<any, any>>; locale?: any; name: string; showError?: ShowErrorFunc; textFieldProps?: TextFieldProps; required?: boolean; } export declare function DatePicker(props: DatePickerProps): React.JSX.Element;