UNPKG

reablocks

Version:
42 lines (41 loc) 1.08 kB
import { FC } from 'react'; import { MotionNodeAnimationOptions } from 'motion/react'; import { CalendarTheme } from '../CalendarTheme'; export interface CalendarYearsProps { /** * The start date of the decade to display. */ decadeStart: Date; /** * The end date of the decade to display. */ decadeEnd: Date; /** * The currently selected year. */ value: number; /** * @deprecated Use animation configuration instead. * X-axis block animation * @default 0 */ xAnimation?: string | number; /** * @deprecated Use animation configuration instead. * Whether to animate the calendar. */ animated?: boolean; /** * Animation configuration for the calendar years. */ animation?: MotionNodeAnimationOptions; /** * A callback function that is called when a year is selected. */ onChange: (year: number) => void; /** * Theme for the CalendarYears. */ theme?: CalendarTheme; } export declare const CalendarYears: FC<CalendarYearsProps>;