UNPKG

react-calendar-range-picker

Version:
30 lines (29 loc) 872 B
import React from "react"; export interface RangePickerProps { show?: boolean; disabled?: boolean; locale?: string; allowPageClickToClose?: boolean; showOnlyTime?: boolean; defaultDate?: string; placeholder?: Array<string>; defaultDates?: Array<string>; defaultTimes?: Array<string>; initialDates?: Array<string>; initialTimes?: Array<string>; enableTimeSelection?: boolean; markedDates?: Array<string>; supportDateRange?: Array<string>; duration?: number; style?: React.CSSProperties; onConfirm?: (res: Array<string>) => void; onClear?: () => void; onClose?: () => void; onChooseDate?: (res: object) => void; minDate?: string; customRanges?: Array<{ label: string; getValue: () => [Date, Date]; }>; } export declare const RangePicker: React.FC<RangePickerProps>;