App components / Calendars
Week view
Seven days of hours with events placed by time, today's date filled and now drawn as an accent rule. Each event is an Event chip: a rail, the title and a mono time, in Default, Accent, Tentative and Past.
MembersReact · Vue · HTMLFigma: Calendars
Code
The component itself, ready to drop into your project. Switch between React, Vue and plain HTML; every version uses the same Tailwind classes on Ochre's tokens.
26 Oct – 1 Nov 2026
Mon26
Tue27
Wed28
Thu29
Fri30
Sat31
Sun1
Installation
Examples
Event chips
Default, Accent, Tentative and Past, and a compact one-line chip.
Design review10:00–11:30
Design review10:00–11:30
Design reviewMaybe · 10:00
Design review10:00–11:30
Stand-up
Motion
Built on Ochre's ease-out curves. With reduced motion switched on, everything still works, it just doesn't move.
01A new week slides in from the side you moved towards with an ease-out.
02Clickable chips give a little when pressed and their border darkens on hover.
03The now rule moves down with the clock, every 30 seconds.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| events | CalendarEvent[] | – | { id, title, start, end, style?, tentative? }. Events are placed on the day they start; overlapping ones sit side by side. |
| week / defaultWeek | Date | – | Any day in the week to show, controlled or as the starting point. Weeks run Monday to Sunday. |
| onWeekChange | (monday: Date) => void | – | Called with the new week's Monday from the arrows, Today, or Page Up and Page Down. |
| now | Date | – | Pins the clock (for demos and tests). Left out, it's the real time. |
| onEventClick | (event) => void | – | Makes chips buttons. Enter on a focused chip calls it too. |
| onDaySelect | (day: Date) => void | – | Enter on a focused day, or a click on its empty space. |
| actions | ReactNode | – | Right of the header: a Day, Week, Month switch and the New event button. |
| startHour / endHour / scrollToHour | number | 7 / 20 / 9 | The hours drawn and where the body starts scrolled to. |
| hourHeight / height | number | 56 / 440 | Pixels per hour and the height of the scrolling body. |
| EventChip variant | "default" | "accent" | "tentative" | "past" | "default" | The Figma Style axis. In the week view it follows the clock unless an event sets style. |
| EventChip start / end / time / compact | Date, Date, ReactNode, boolean | – | The time is worked out from start and end (Tentative shows MAYBE and the start); compact is one line. |
Usage
Use it for
- Scheduling screens where the time of day matters: meetings, shifts, bookings.
- Event chip on its own for an event in a list, a card or a tooltip.
Avoid
- Planning across weeks: use the Month view.
- Just today's list on a phone or in a side panel: use the Agenda.