UNPKG

reablocks

Version:
37 lines (35 loc) 840 B
import { CalendarTheme } from '../CalendarTheme'; import { FC } from 'react'; export interface PresetOption { label: string; value: Date | [Date, Date] | (() => Date | [Date, Date]); group?: string; } interface CalendarPresetsProps { /** * Preset options to show */ options: PresetOption[]; /** * Whether to show time presets */ showTime?: boolean; /** * Callback function for when a preset is selected */ onChange: (value: Date | [Date, Date]) => void; /** * Theme for the preset panel */ theme?: CalendarTheme; /** * Currently selected value */ value?: Date | [Date, Date]; /** * Optional className for the component */ className?: string; } export declare const CalendarPresets: FC<CalendarPresetsProps>; export {};