UNPKG

react-date-range-picker-pro

Version:

A powerful, customizable React date and time picker component with intelligent presets, interactive calendar, and seamless integration capabilities.

35 lines (29 loc) 786 B
import React from 'react'; export interface DateRangeData { startDate: Date; endDate: Date; timezone: string; includeTime: boolean; } export interface TimeData { time: string; timezone: string; } export interface CustomPreset { label: string; startDate: Date; endDate: Date; } export interface DateRangePickerProProps { initialStartDate?: Date; initialEndDate?: Date; onDateRangeChange?: (data: DateRangeData) => void; onTimeChange?: (data: TimeData) => void; showTimeSelector?: boolean; showPresetsByDefault?: boolean; enableTimezone?: boolean; customPresets?: CustomPreset[] | null; className?: string; } declare const DateRangePickerPro: React.FC<DateRangePickerProProps>; export default DateRangePickerPro;