Month calendar


Install
npx shadcn add @klarhimmel/app-scheduling-calendarDetailsAbout, usage, props and more
A month as a table with its events, today marked in words, previous, next and today buttons, and an agenda list in narrow containers instead of a cramped grid.
States
month calendar in 4 forms: filled, empty, loading, error.
state: filled
Name the calendar's owner
Name what the calendar shows
Say which kinds of events fill this calendar.
November 2026
November 2026
Say which dates could not be read and are hidden:Say nothing is planned yet.
Loading events…
Say the events did not load.November 2026 Mon Tue Wed Thu Fri Sat Sun - 10:00 Name the first event
- 14:00 Name the second event
- 09:00 Name the fourth event
- 12:00 Name the fifth event
- 16:00 Name the third event
- 19:00 Name the sixth event
Today- 09:30 Name an event
- 13:00 Name a longer event
- Name a longer event
- at 10:00: Name the first event
- at 14:00: Name the second event
- at 09:00: Name the fourth event
- at 12:00: Name the fifth event
- at 16:00: Name the third event
- at 19:00: Name the sixth event
Today
- at 09:30: Name an event
- at 13:00: Name a longer event
- Name a longer event
state: empty
Name the calendar's owner
Name what the calendar shows
Say which kinds of events fill this calendar.
November 2026
November 2026
Say which dates could not be read and are hidden:Say nothing is planned yet.
Loading events…
Say the events did not load.November 2026 Mon Tue Wed Thu Fri Sat Sun TodayToday
state: loading
Name the calendar's owner
Name what the calendar shows
Say which kinds of events fill this calendar.
November 2026
November 2026
Say which dates could not be read and are hidden:Say nothing is planned yet.
Loading events…
Say the events did not load.November 2026 Mon Tue Wed Thu Fri Sat Sun TodayToday
state: error
Name the calendar's owner
Name what the calendar shows
Say which kinds of events fill this calendar.
November 2026
November 2026
Say which dates could not be read and are hidden:Say nothing is planned yet.
Loading events…
Say the events did not load.November 2026 Mon Tue Wed Thu Fri Sat Sun TodayToday
Notes
When to use it
A month view with events, for showing what is planned and not for booking. To let someone choose a time, use app-scheduling-slots. In narrow containers the grid turns into an agenda list, so it also works in a side column.
Writing for it
- Dates are plain ISO text: month as 2026-11, today as 2026-11-16 and each event date as 2026-11-04. The block never reads the clock, so you must set today yourself. - weekdays needs exactly seven names starting from the day firstDay picks, and locale (10) sets the language of the month names. Change all three together for another language. - Event titles hold 60 characters and the time is optional at 12. An event without a time shows only its title in the cell.
Watch out for
A date that cannot be read, like 2026-13, is not dropped silently: it is listed under messages.invalid so you can fix it. Up to 40 events are allowed, and a month without events shows the empty message even when the state is filled.
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
month, today and locale are plain text (ISO dates and a language tag), because a block never reads the clock. events are dated lines; weekdays, firstDay and the button labels are the calendar chrome.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the calendar's owner' | Text, up to 60 characters. Optional; empty is not rendered. |
title | string | 'Name what the calendar shows' | Text, up to 120 characters. |
description | string | 'Say which kinds of events fill this…' | Text, up to 300 characters. Optional; empty is not rendered. |
month | string | '2026-11' | Text, up to 7 characters. |
today | string | '2026-11-16' | Text, up to 10 characters. |
locale | string | 'en' | Text, up to 10 characters. |
firstDay | 'mon' | 'sun' | 'mon' | One of 'mon', 'sun'. |
weekdays | string[] | 7 items | List of 7 to 7. |
events | { date, time, title }[] | 9 items | List of up to 40. Each item: date, time (optional), title. |
previous | string | 'Previous month' | Text, up to 30 characters. |
next | string | 'Next month' | Text, up to 30 characters. |
todayLabel | string | 'Today' | Text, up to 20 characters. |
at | string | 'at' | Text, up to 10 characters. |
state | 'filled' | 'empty' | 'loading' | 'error' | 'filled' | One of 'filled', 'empty', 'loading', 'error'. |
messages | { empty, loading, error, retry, invalid } | {…} | Fields: empty, loading, error, retry, invalid. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |
Install
Installs
- Button
- IconButton
- About
- A month as a table with its events, today marked in words, previous, next and today buttons, and an agenda list in narrow containers instead of a cramped grid. Filled, empty, loading and error states.
- States
- Filled, empty, loading, error. Today is marked in words; an agenda replaces the grid in narrow containers. New project? Set it up once: /get-started/installation.