Draft. Ported from the shadcn-vue Range calendar (style reka-nova, read 12 November 2026) and restyled with Beehexa tokens. Not yet approved. It is in the registry so teams can try it; the API may still change before approval.
A range calendar is a calendar that picks two days: the start and the end of a period. The days between are shown as one band.
When to use
- To pick a period: a report period, promotion dates, a date filter on a table.
- When the length of the period or the weekdays it covers matter, so people need to see the days.
When not to use
- For one date. Use Calendar.
- For fixed periods such as “Last 7 days” or “This month”. Offer them as a segmented control or a menu, and keep the range calendar for a custom period.
- For dates years apart. Two text fields are faster.
Behaviour
- The first pick sets the start, the second the end. Picking again starts a new range.
- The start and end days have the primary fill. The days between take
color.background.selectedand acolor.border.selectedbar along the bottom, so the range does not rely on a fill alone. - Today has a
color.border.boldedge. min-valueandmax-valuedisable the days outside them.is-date-unavailablegreys and strikes through days that can’t be in a range.number-of-monthsshows several months side by side; on narrow screens they stack.localesets the weekday and month names and the first day of the week.
Content
- Label the picker with what the period is for: “Order date”, “Promotion dates”.
- Show the picked range as text next to the calendar or on its trigger, written out: “12 – 18 Nov 2026”.
Tokens
| Part | Tokens |
|---|---|
| Container | color.surface, padding space.150 |
| Day | size.control.default (32 px), radius.control.small, font.body.default; hover and press as the Subtle button |
| Start and end | color.background.primary, color.text.inverse; .hover and .pressed (D22) |
| Days between | color.background.selected with a color.border.selected bar, border.width.selected (D24) |
| Today | color.border.bold edge |
| Outside the month | color.text.subtlest |
| Disabled, unavailable | color.text.disabled; unavailable also struck through |
| Month heading | font.heading.xsmall |
| Weekdays | font.label.small, color.text.subtle |
| Previous, next | Default button at size.control.small, icon color.icon.subtle |