tdesign-react
Version:
TDesign Component for React
14 lines (13 loc) • 469 B
TypeScript
import type { TdDatePickerProps, TdDateRangePickerProps } from '../type';
export interface disableDateProps {
disableDate?: TdDatePickerProps['disableDate'] | TdDateRangePickerProps['disableDate'];
format?: TdDatePickerProps['format'];
mode?: TdDatePickerProps['mode'];
start?: Date;
end?: Date;
}
export default function useDisableDate(props: disableDateProps): {
disableDate: (value: Date) => boolean;
minDate: Date;
maxDate: Date;
};