UNPKG

mui-rff

Version:

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

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