skip to the page
superthread
compositionsmonth grid
system
superthread
version
2.15.1
date
24.11.26

month grid

a month at a glance: a dot on the days that hold something, today's edge and the open day's bar. it sits in a reader's rail or beside any list of days.

bunx --bun shadcn@latest add @mk/month-grid

serves orbit and artifacts.

example

the grid always prints six weeks from a monday, so a step never moves what sits under it. figures print in mono, so the columns hold. pick a day and its bar moves: nothing else does.

light

november 2026

wkmotuwethfrsasu
44311
4545678
469101112131415
4716171819202122
4823242526272829
4930123456

dark

november 2026

wkmotuwethfrsasu
44311
4545678
469101112131415
4716171819202122
4823242526272829
4930123456

the marks

a dot says a day holds something. ink says what it holds and where it falls: foreground with something on it, muted when it’s empty or sits in the month beside it, faint when it’s both. today prints a 1 px edge and the open day a 2 px bar along its foot. they’re separate marks, so a day that is both prints both, and its aria label says selected because aria-current is already saying the date.

light

november 2026

motuwethfrsasu
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

dark

november 2026

motuwethfrsasu
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

the week column

weeks, even an empty list, prints each week’s number under wk, in the same calendar weeks the year uses. a week in the list takes a dot and a link like a day does. without weeks there’s no column. a day with no link still prints its dot and says its label, and a month with no links reads as a table.

light

october 2026

motuwethfrsasu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

dark

october 2026

motuwethfrsasu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

steps and keys

onMonthChange prints the two steps, and min and max bound them. at a bound a step keeps its place and its focus, and prints a faint arrow. the links are one tab stop: the open day, else today, else the first link, and it follows the keys. left and right walk the links in reading order, and past either end they turn the month and carry on from that date. up and down keep the column.

when the month that opens has no link past that date, focus moves to its step, or to the month’s nearest link if that step is closed. a step answers left and right too, so a month with no links still turns by key. while loading is set, focus waits on the step until the days arrive.

light

november 2026

motuwethfrsasu
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

dark

november 2026

motuwethfrsasu
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

while the days are unread

an empty month and an unread month aren’t the same thing. loading holds the grid’s shape, marks where a dot could land and tells a screen reader the table is busy.

light

november 2026

wkmotuwethfrsasu
4426
27
28
29
30
31
1
452
3
4
5
6
7
8
469
10
11
12
13
14
15
4716
17
18
19
20
21
22
4823
24
25
26
27
28
29
4930
1
2
3
4
5
6

dark

november 2026

wkmotuwethfrsasu
4426
27
28
29
30
31
1
452
3
4
5
6
7
8
469
10
11
12
13
14
15
4716
17
18
19
20
21
22
4823
24
25
26
27
28
29
4930
1
2
3
4
5
6

on a phone

every cell stands 44 px tall and every step reaches 44 px, each on its own box, so no two reaches overlap. with the week column the grid hangs 9 px into each side of a panel, which makes eight cells 44 px wide at 390 px. a narrower phone gives up width, about 40 px at 360.

light

dark

parts

MonthGrid
the head and six weeks, from month, today, days, weeks, loading, min, max and onMonthChange. months and dates are plain, like 2026-11 and 2026-11-03, and useMinute’s day is today. give it an aria-label that says what the month holds.
MonthGridEntry
a day or a week with something in it: its date, the label said before that date, and selected. href or a router link through render makes it a link.