UNPKG

react-trip-date

Version:

Accessible, fully customizable date and range picker for React applications.

25 lines 975 B
import { Dayjs } from "dayjs"; import { Dispatch, RefObject, SetStateAction } from "react"; export type DateWindow = { start: string; end: string; }; export interface UseCalendarControllerOptions { autoResponsive: boolean; initialMonthAndYear: string | undefined; jalali: boolean; locale: string | undefined; numberOfMonthsProp: number; onRangeDateInScreen?: (window: DateWindow) => void; initialFocusDate?: string; } export interface CalendarController { ref: RefObject<HTMLDivElement>; source: Dayjs; setSource: Dispatch<SetStateAction<Dayjs>>; numberOfMonths: number; displayMonths: boolean; setDisplayMonths: Dispatch<SetStateAction<boolean>>; } export declare function useCalendarController({ autoResponsive, initialMonthAndYear, jalali, locale, numberOfMonthsProp, onRangeDateInScreen, initialFocusDate, }: UseCalendarControllerOptions): CalendarController; //# sourceMappingURL=useCalendarController.d.ts.map