Data JS behaviour

Calendar

A month grid over plain “YYYY-MM-DD” dates (no date library); switching months is client-side and slides in from its side, the selected day’s agenda restacks under the grid, and keyboard roving walks the days.

Real scenarios

The component as it is used in a product — not a specimen grid.

September, the shipping month

Pick a day — the 14th is full, so its last event folds into a “+1” tally. The agenda under the grid restacks per day; picking the selected day clears it. Arrow keys walk the days, Home/End run to the week’s edges.

September 2026

Monday, 14 September 2026

4 events
Team calendar
Thursday, 3 September 2026 10:00 — Design review
Thursday, 3 September 2026 17:00 — Copy deadline
Tuesday, 8 September 2026 Kanban block ships
Thursday, 10 September 2026 09:30 — Support handover · Tokyo
Monday, 14 September 2026 10:00 — Design review
Monday, 14 September 2026 16:30 — Ship v2.5
Monday, 14 September 2026 19:00 — Release party
Monday, 14 September 2026 On-call rotates
Tuesday, 22 September 2026 Team offsite · Caspian
Thursday, 24 September 2026 11:00 — Board meeting
Wednesday, 30 September 2026 Quarter closes

Selected day on the server (wire:model): —

The release calendar

week-start pins Saturday for a Saturday-first work week and every chip stays a link to its release note. Switching months is client-side: the new month slides in from its side, mirrored in RTL.

November 2026

Releases
Saturday, 5 September 2026 v2.4.1
Monday, 14 September 2026 v2.5.0
Monday, 28 September 2026 v2.5.1

Important props

Important props
Prop Type Default What it does
events array [] Each event: ['date' => …, 'label' => …, 'time' => …, 'tone' => accent|success|warning|danger|info|gold, 'href' => …]; a full day gets a “+N” tally.
value / wire:model string null The selected day; picking the selected day clears it (null).
month / today / weekStart / maxPerCell string / string / int / int null / null / 0 / 3 The opening month, “today”, the week’s first day (0 Sunday · 6 Saturday) and the events shown per cell.
locale / label / emptyText string null The locale for day/month names and digits, the accessible name and the empty-day text.

Snippet

<x-nx::calendar value="2026-09-14" week-start="6" max-per-cell="3" wire:model="state.day" :events="[
    ['date' => '2026-09-14', 'label' => 'بازبینی طراحی', 'time' => '10:00', 'tone' => 'accent'],
    ['date' => '2026-09-22', 'label' => 'گردشوری تیمی', 'tone' => 'gold'],
]" />