Skip to content

Calendar

ReleasedShipped in 0.3.0StorybookFigma canvas 57:1647Source
  • Use type picker for guests to choose check in and check out, with the nightly price under each day; show two months side by side on web and one on mobile.
  • Use type occupancy in the back office to see how full each day of a month is: rooms sold, the percentage, and sold-out days in navy.
  • Mark a stay with start and end on the check in and check out days, and in-range on the nights between.
  • Grey out past days and strike through days that can’t be booked, so people never pick a date that fails later.
  • Keep the price short with no currency on each day, and show the currency once nearby.
  • In occupancy, explain the colours under the grid, such as “Navy is sold out. Red percentages are above 95%.”
  • For a single known date such as a date of birth: use a date field.
    Instead: date field
  • To pick a time range for a report, such as the last 7 days: use Buttongroup type segmented.
    Instead: Buttongroup
  • To list bookings or events by day: use a Table.
    Instead: Table

From the Figma documentation page (usage node 236:573), as written. These items aren’t carried into Calendar.intent.json, which has no field for them.

  • Grey out past days and strike through days that can’t be booked, so people never pick a date that fails later.
  • Keep the price short with no currency on each day, and show the currency once nearby.
  • In occupancy, explain the colours under the grid, such as “Navy is sold out. Red percentages are above 95%.”
Property Value What it is for
type picker for guests to choose check in and check out, with the nightly price under each day; show two months side by side on web and one on mobile.
type occupancy in the back office to see how full each day of a month is: rooms sold, the percentage, and sold-out days in navy.
state (CalendarDay and CalendarOccupancyDay, internal) empty Figma doesn’t say.
state (CalendarDay, internal) past Grey out past days
state (CalendarDay, internal) available Figma doesn’t say.
state (CalendarDay, internal) today Figma doesn’t say.
state (CalendarDay, internal) unavailable strike through days that can’t be booked
state (CalendarDay, internal) start on the check in day of a stay.
state (CalendarDay, internal) in-range on the nights between check in and check out.
state (CalendarDay, internal) end on the check out day of a stay.
state (CalendarOccupancyDay, internal) normal Figma doesn’t say.
state (CalendarOccupancyDay, internal) high Red percentages are above 95%.
state (CalendarOccupancyDay, internal) soldout sold-out days in navy.
state (CalendarOccupancyDay, internal) over Figma doesn’t say.

12 of these 14 keys are states of internal parts, not values of a Calendar prop. picker and occupancy are the values of type (CalendarType), the only variant union Calendar takes. The other 12 are the states of CalendarDay and CalendarOccupancyDay, which Calendar renders and the package root does not export (see “Parts it renders” on the Code tab), so a reader of this page cannot set them on Calendar. The stories’ header comment says: “Day states are derived from these, never set by hand.” (Calendar.stories.tsx:7-12). empty is a state of both parts and is one key.

From the release review, under “Findings outside the gates”, as written:

State keys describe parts that are not Calendar props. Twelve of the 14 variant_intent keys are states of the internal sub-components, which are not exported from the package root; a reader of the docs page cannot set them on Calendar. Not a gate finding under the reading above. Owner: doc-generator and a human, to decide how the docs page presents them.

The release review’s “Check 5 reading” explains why the keys are read this way, and ends: “A human may confirm the reading.” (release review)

From Versioning (VERSIONING.md at b9ffb76):

0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.

Two things about this release are worth knowing:

  • Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
  • Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.