UNPKG

react-hook-form-mui

Version:

<div align="center"> <a href="https://react-hook-form-material-ui.vercel.app/" rel="noopener" target="_blank"> <img src="./rhf-mui.png" alt="Material-UI and react-hook-form combined" /> </a> </div>

16 lines (14 loc) 602 B
import {TimeValidationError} from '@mui/x-date-pickers' export const defaultErrorMessages: { [v in NonNullable<TimeValidationError>]: string } = { invalidDate: 'Time is invalid', minTime: 'Time is earlier than the minimum allowed', maxTime: 'Time is later than the maximum allowed', disableFuture: 'Future time is disabled', disablePast: 'Past time is disabled', 'shouldDisableTime-hours': 'Specified hour is disabled', 'shouldDisableTime-minutes': 'Specified minute is disabled', 'shouldDisableTime-seconds': 'Specified second is disabled', minutesStep: 'Invalid minutes step', }