Skip to content
coatx
Esc
↑↓navigate↵open⌘Jpreview
On this page

Calendar

Month-grid calendar recipes supporting selection, today rings, outside days, and date ranges.

December 2026

SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
Selected: 2026-12-12 (use arrow keys or ‹ › to change months)

Usage

import {
  calendar,
  calendarDay,
  calendarGrid,
  calendarHeader,
  calendarHeading,
  calendarNav,
  calendarNavButton,
  calendarWeek,
  calendarWeekday,
  calendarWeekdays,
} from "coatx/calendar";

Exports (coatx/calendar)

Export Description
calendar(options?) Bordered calendar surface container
calendarHeader(options?) Month heading + navigation header bar
calendarHeading(options?) Month & year caption
calendarNav(options?) Navigation button group
calendarNavButton(options?) Previous / next month icon button
calendarGrid(options?) Vertical grid wrapping weekdays and weeks
calendarWeekdays(options?) 7-column weekday header row
calendarWeekday(options?) Individual weekday label cell
calendarWeek(options?) 7-column week row
calendarDay(options?) Day button (selected, today, outside, rangeStart, rangeMiddle, rangeEnd, disabled)
calendarStyles Compiled StyleX style map

Was this page helpful?