Dates
Year Range Calendar
A range of years: two choices, the years between one band.
npx shadcn@latest add @fragiola/year-range-calendarA year range calendar chooses a first and a last year on pages of 12 years, as a Month Range
Calendar chooses months: the ends are checked, the years
between the Calendar's band.
Bases
Primitives-backed. Base UI has no year range calendar, so this is one shared file (ui/year-range-calendar.tsx) that wraps
Fragiola Primitives' YearRangeCalendar on both bases, and the item depends on
@fragiola/[email protected] on both. It follows the direction of the base's
DirectionProvider on Base UI too, and dir="rtl" without one.
Parts
The Month Calendar's parts, named year-range-calendar-*, with its
own Root (primitive YearRangeCalendar.Root) and Template.Simple; the page buttons are named
"Previous years", "Next years".