# Agenda

> A calendar's schedule view: upcoming events grouped under a heading per day, each row a colour dot, its times in a fixed column, then its title and a detail line.

```ts
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`.

## Examples

```tsx
<Agenda id="upcoming" label="Upcoming" today="2026-11-18" days={[{ date: "2026-11-18",
	events: [{ id: "e1", title: "Standup", time: "9:00 – 9:15 AM", href: "/events/e1" }] }]} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `label` | `string` | The region's accessible name, such as "Upcoming events". |
| `id` | `string` | Unique on the page; prefixes every event's popover id. |
| `days` | `Day[]` |  |
| `today?` | `string` | Today, as `YYYY-MM-DD`; its heading takes the brand colour. |
| `locale?` | `string` | Formats the day headings. @default "en" |
| `empty?` | `RemixNode` | Shown in place of the list when `days` is empty, such as "Nothing scheduled". |

Also accepts everything in `Omit<TagProps<"section">, "children">`.

