UNPKG

reablocks

Version:
45 lines (44 loc) 1.37 kB
import { default as React, FC } from 'react'; import { CalendarProps } from './Calendar'; import { CalendarRangeTheme } from './CalendarRangeTheme'; import { PresetOption } from './CalendarPresets'; export interface CalendarRangeProps extends Omit<CalendarProps, 'value' | 'isRange' | 'onViewChange' | 'theme' | 'showTime'> { /** * The selected date(s) for the calendar. */ value?: [Date, Date] | [undefined, undefined] | [Date | undefined] | undefined; /** * The number of calendar months to display. * @default 2 */ monthsToDisplay?: number; /** * Defaults view to show past or future months if multiple months shown. * @default 'future' */ direction?: 'past' | 'future'; /** * The text or icon to use for next year. * @default '»' */ nextYearArrow?: React.ReactNode | string; /** * The text or icon to use for previous year. * @default '«' */ previousYearArrow?: React.ReactNode | string; /** * The format of the date displayed in the calendar header. * @default 'MMMM' */ headerDateFormat?: string; /** * Theme for the CalendarRange. */ theme?: CalendarRangeTheme; /** * Preset options for the calendar. */ preset?: PresetOption[]; } export declare const CalendarRange: FC<CalendarRangeProps>;