Skip to main content

⚙️ Years Calendar

PropTypeDefaultDescription
rangenumber16Specifies how many years should be shown in the year picker view.
disabledYears(Date | Moment)[]Array of years to disable in the calendar.
renderYear(renderedValue: string, date: Date, props: HTMLAttributes<any>, state: YearCellState) => ReactNodeA function that returns a custom element for each year cell in the calendar.
disabledDatesFn(date: Date) => booleanFunction to disable dates dynamically.
onSelect(date: Date) => voidCalled when a user clicks a year; receives the clicked date as a Date object.