reablocks
Version:
Component library for React
41 lines (39 loc) • 1.26 kB
TypeScript
import { PresetOption } from './CalendarPresets';
import { CalendarRangeTheme } from './CalendarRangeTheme';
import { CalendarProps } from './Calendar';
import { default as React, FC } from 'react';
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.
*/
monthsToDisplay?: number;
/**
* Defaults view to show past or future months if multiple months shown.
*/
direction?: 'past' | 'future';
/**
* The text or icon to use for next year.
*/
nextYearArrow?: React.ReactNode | string;
/**
* The text or icon to use for previous year.
*/
previousYearArrow?: React.ReactNode | string;
/**
* The format of the date displayed in the calendar header.
*/
headerDateFormat?: string;
/**
* Theme for the CalendarRange.
*/
theme?: CalendarRangeTheme;
/**
* Preset options for the calendar.
*/
preset?: PresetOption[];
}
export declare const CalendarRange: FC<CalendarRangeProps>;