UNPKG

mui-rff

Version:

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

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