Calendar
GraphCalendar
One month as a seven-column grid. Marked days use the accent. today is wrapped in brackets.
Command
pnpm dlx shadcn@latest add <origin>/r/graph-calendar.jsonMarked days
month is 1–12. today is passed in so render stays stable.
August 2026, today 27, marked 12, 18, 27
Sunday start
weekStartsOn 0 matches a US calendar.
March 2026, marked 12, 18
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption. Defaults to the month name. |
| year | number | — | Full year. |
| month | number | — | 1–12. |
| weekStartsOn | 0 | 1 | 1 | 0 is Sunday. 1 is Monday. |
| marks | number[] | CalendarMark[] | — | Days to accent. Pass numbers, or { day, accent }. |
| today | number | — | Day of the month to wrap in brackets. Pass it in. |
| palette | "mono" | "duo" | "multi" | "mono" | mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents. |
| corner | string | "+" | Character at each corner of the frame. |
| className | string | — | Passed to the outer frame. |