@mui/x-date-pickers
Version:
The community edition of the Date and Time Picker components (MUI X).
11 lines (9 loc) • 336 B
JavaScript
'use client';
import * as React from 'react';
export const IsValidValueContext = /*#__PURE__*/React.createContext(() => true);
/**
* Returns a function to check if a value is valid according to the validation props passed to the parent Picker.
*/
export function useIsValidValue() {
return React.useContext(IsValidValueContext);
}