Week calendarPro
Work screens / Week calendar: a team calendar on a time grid. Events tinted by calendar with places, Zoom calls and guests; overlapping events sit side by side; all-day events in their own row and a line for now. Drag an event to move it (its bottom edge to resize) or drag on an empty slot to create one; focus an event and use the arrows (Shift + ↑ ↓ resizes). Day / Week / Month, Today and the arrows to page, a mini month to jump to a date, calendars to show or hide (or Only), a filter field and a Next up card with Join.
oxyn add week-calendar- Ashgrove
- Calendar
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Plan the week on a time grid and move meetings by hand or keyboard.
When not to use
- Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
- The app frame: use App shell instead.
- An assistant docked beside a page: use AI side panel instead.
Installation
Week calendar is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add week-calendarUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data, the page as an inset card beside the sidebar.
- Ashgrove
- Calendar
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Flat
The same view with the page edge to edge.
- Ashgrove
- Calendar
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons where the data lands.
- Ashgrove
- Calendar
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
A first run: what will show here and how to start.
- Ashgrove
- Calendar
No events yet
Connect a calendar or add the first event; drag on the grid to block time.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Dragging
An event lifted mid-drag one day later and 30 minutes later.
- Ashgrove
- Calendar
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Creating
A new event drawn on the grid with its title field and calendar menu.
- Ashgrove
- Calendar
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Dayview
One day's time grid.
- Ashgrove
- Calendar
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
WeekCalendarScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`. |
state | String | "sample" | A state key. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ← → ↑ ↓ | Move the focused event a day or 15 minutes |
| Shift↑ ↓ | Make the focused event shorter or longer |
| TorDorWorMorN | Today, Day, Week, Month, New event |
| Delete | Delete the focused event |
| Escape | Close the new event form or clear the selection |
Accessibility
- Each event is a button named with its date, time and place; moves report in a polite live region.
- Day headers are buttons that open the Day view; the mini month's days are toggle buttons named with their ISO date.
- Calendars are checkboxes; Only is a labelled icon button.
Responsive behaviour
- Authored on the 1440 × 900 canvas: a 248 px sidebar, the page as an inset card and, where the screen has one, a 328 px right card in the gutter.
- Under 960 px the sidebar becomes a drawer from the header's menu button and the right card hides.
- Under 640 px header actions turn into icon buttons, grids drop to one column and labels ellipsise.
Edge cases (spec)
Authored on the 1440 × 900 stage and scaled to its column; /full renders at the real viewport. Under 960 px the sidebar is a drawer from the header's menu button (Escape or the scrim closes it) and the right card hides. Under 640 px header actions become icon buttons and the meta line hides. scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark. Under 960 px the week keeps a 720 px grid inside the page, which scrolls sideways with a visible scrollbar; the Day view always fits.
Notes for AI
- Import
WeekCalendarScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
WeekCalendarElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.