@rnwonder/react-date-picker
Version:
A lightweight, customizable, and accessible date picker component for React applications.
29 lines (27 loc) • 1.01 kB
TypeScript
import { ApplyDateRange, DateArray, DateObjectUnits, DatePickerDayClassNamesAndColors, HoverRangeValue } from '../../interface/general';
import { default as React } from 'react';
interface DatePickerDayProps extends DatePickerDayClassNamesAndColors, Partial<ApplyDateRange> {
header?: boolean;
children?: React.ReactNode;
onClick?: () => void;
disabled?: boolean;
disabledDays?: DateArray[];
shouldHighlightWeekends?: boolean;
onDisabledDayError?: (data: DateObjectUnits) => void;
onHover?: () => void;
onHoverEnd?: () => void;
hoverRangeValue?: HoverRangeValue;
wrapperProps?: DatePickerDayWrapperPropsProps;
headerValue?: string;
noButtonAnimation?: boolean;
month?: number;
year?: number;
day?: number;
}
interface DatePickerDayWrapperPropsProps extends React.ComponentProps<"div"> {
"data-scope": string;
"data-type": string;
"aria-label": string;
}
export declare const DatePickerDay: React.FC<DatePickerDayProps>;
export {};