On this page

Calendar

When to use a calendar, what to use instead, behaviour and tokens.

Draft. Ported from the shadcn-vue 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 calendar shows one month as a grid of days. People pick one day with the pointer or the keyboard.

When to use

  • To pick a date when the day of the week or nearby dates matter, such as a delivery date, a due date or a meeting day.
  • Inside a date picker: a button that shows the chosen date and opens the calendar in a popover.
  • On the page, when picking a date is the main task of a panel.

When not to use

  • For a date people already know by heart, such as a date of birth. A text field with a clear format is faster.
  • For a start and an end date. Use Range calendar.
  • For a date far in the past or future without the month and year pickers. Set layout="month-and-year", or use a text field.

Behaviour

  • Today has a color.border.bold edge. The selected day has the primary fill; it never looks like a hovered day.
  • Days before min-value or after max-value are disabled and can’t be picked. Days that match is-date-unavailable are greyed and struck through.
  • Days of the previous and next month show in color.text.subtlest.
  • Previous and next move one month. With number-of-months, several months sit side by side.
  • locale sets the weekday names, the month names and the first day of the week. Pass the page language.

Content

  • Say what the date is for in a label next to the picker: “Invoice due date”, not “Date”.
  • If some days can’t be picked, say why on the page: “No deliveries on Sundays.”

Tokens

Part Tokens
Container color.surface, padding space.100
Day size.control.default (32 px), radius.control.small, font.body.default; hover and press as the Subtle button
Selected day color.background.primary, color.text.inverse; .hover and .pressed (D22); its cell color.background.selected
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
Focus border.width.focused, color.border.focus, state.focus.offset, as the Button