@mui/x-date-pickers
Version:
The community edition of the Date and Time Picker components (MUI X).
4 lines (3 loc) • 399 B
TypeScript
import { DateComponentValidationProps } from '../internals/utils/validation/validateDate';
import { PickerValidDate } from '../models';
export declare const useIsDateDisabled: <TDate extends PickerValidDate>({ shouldDisableDate, shouldDisableMonth, shouldDisableYear, minDate, maxDate, disableFuture, disablePast, timezone, }: DateComponentValidationProps<TDate>) => (day: TDate | null) => boolean;