Calendar
ISO Week Grid
A month grid with an ISO 8601 week-number column: you pick the whole row rather than a day, and the caption below turns “week 16” into real dates.
What you can change
- month — the displayed month as a YYYY-MM string
- locale — the locale for month and weekday labels
- today — the reference date for the “today” outline
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/calendar-021?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, zero dependencies, its own palette in local variables --vibeui-calendar-021-*. Client-side: the number of the selected week lives in useState. The markup is an ordinary <table>, where the row header <th scope="row"> holds a button with the week number, so the "week → days" link is read by a screen reader without ARIA crutches. The number is computed by isoWeek: the date is shifted to the Thursday of its own week and compared with the start of the year in UTC, so the daylight-saving switch and January's runaway weeks do not break the count. The grid is built from Monday ((getDay()+6)%7), and empty leading weeks are dropped by a filter. The selected row's highlight hangs on tr[data-picked="true"], the rounded edges on td:first-of-type and td:last-child.
Tags
- calendar
- week
- iso-8601
- planning
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…