Agenda
A calendar's schedule view.
Wednesday, November 18
- 9:30 – 9:45 AMStandupHuddle · #product
Mara presents the onboarding flow; bring one question each.
- 4 – 5 PMMetrics walkthrough
Thursday, November 19
- 8 – 8:45 AMDentist5th Ave
- 3:30 – 4:30 PMSprint retro
Friday, November 20
- All dayProduct offsite
View code
<Agenda
id="schedule"
label="Next three days"
today="2026-11-18"
days={[
{
date: "2026-11-18",
events: [
{ id: "standup", title: "Standup", time: "9:30 – 9:45 AM", detail: "Huddle" },
{ id: "crit", title: "Design crit", time: "2 – 3 PM", popover: <EventCard /> },
],
},
{ date: "2026-11-19", events: [{ id: "retro", title: "Sprint retro", time: "3:30 – 4:30 PM", href: "/events/retro" }] },
]}
/>Installation
An ordinary dependency: install it, import the theme once, and import the component where it is used.
npm add @sdxc/ui remiximport "@sdxc/ui/theme.css";Usage
import { Agenda } from "@sdxc/ui/schedule";Renders the agenda: an ordered list of days, each a sticky date heading beside an ordered list
of its events. Today's heading carries aria-current="date", and an empty days shows empty.
Props
Read from the component's own types, so every prop, every default and every allowed value is listed.
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | Yes | The region's accessible name, such as "Upcoming events". |
id | string | Yes | Unique on the page; prefixes every event's popover id. |
days | Day[] | Yes | |
today | string | No | Today, as YYYY-MM-DD; its heading takes the brand colour. |
locale | string | No | Formats the day headings. @default "en" |
empty | RemixNode | No | Shown in place of the list when days is empty, such as "Nothing scheduled". |
Also accepts everything in Omit<TagProps<"section">, "children">.