Calendar
Shift Roster
A shift roster as a staff-by-day table: a shift code in every cell, a colour per shift type and a weekly total on the right, so a coverage gap shows up as an empty column.
What you can change
- heading — the caption above the roster
- weekStart — the first day of the week as a YYYY-MM-DD string
- people — the staff list with a role and seven consecutive shifts
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-025?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-025-*. Server-side: there is no state, everything is computed from the people prop at render. The markup is a real <table> with <th scope="col"> on the days and <th scope="row"> on the staff, so a screen reader reads a cell as "Irina Sokolova, Tuesday". A cell holds a short code under aria-hidden and the full shift name in a visually hidden [data-part="sr"], so colour is not the only carrier of meaning. The shift type is expressed by the data-shift attribute, and every type has a palette of its own. The row density is switched by the variable --vibeui-calendar-025-cell through data-density, and the horizontal scroll lives in a separate [data-part="scroll"] wrapper, so the table does not stretch the card. The theme comes from the surrounding color-scheme through light-dark(): the component has no surface of its own by default, it sits directly on the page background and darkens along with it, while the background prop brings the panel back. All the captions — the staff column heading, the shift names and codes — arrive in props, the Russian values sit in the defaults.
Tags
- calendar
- shifts
- roster
- team
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…