UNPKG

reablocks

Version:
39 lines (38 loc) 1.01 kB
import { FC } from 'react'; import { CalendarTheme } from '../CalendarTheme'; export interface PresetOption { /** Display label for the preset option. */ label: string; /** Date value or range, or a function that returns one. */ value: Date | [Date, Date] | (() => Date | [Date, Date]); /** Optional group name used to organize presets. */ 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 {};