UNPKG

@blueprintjs/datetime

Version:

Components for interacting with dates and times

11 lines (10 loc) 619 B
import * as React from "react"; import type { DatePickerBaseProps } from "../../common"; import type { DatePickerState } from "./datePickerState"; export type DatePickerContextState = Pick<DatePickerBaseProps, "reverseMonthAndYearMenus"> & Pick<DatePickerState, "locale">; /** * Context used to pass DatePicker & DateRangePicker props and state down to custom react-day-picker components * like DatePickerCaption. */ export declare const DatePickerContext: React.Context<DatePickerContextState>; export declare const DatePickerProvider: (props: React.PropsWithChildren<DatePickerContextState>) => React.JSX.Element;