Fragiola

Dates

Month Range Calendar

A range of months: two choices, the months between one band.

npx shadcn@latest add @fragiola/month-range-calendar
Month Range Calendar
Gallery

A month range calendar chooses a first and a last month, as a Range Calendar chooses dates: the first choice starts the range, the months between preview it, the second ends it. The ends are checked and the months between are the Calendar's band, rounded at a row's ends, logical in RTL. Keys and bounds are the Month Calendar's.

Bases

Primitives-backed. Base UI has no month range calendar, so this is one shared file (ui/month-range-calendar.tsx) that wraps Fragiola Primitives' MonthRangeCalendar 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 month-range-calendar-*, with its own Root (primitive MonthRangeCalendar.Root) and Template.Simple.

On this page