SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

Agenda

A calendar's schedule view.

  1. Wednesday, November 18

    1. 9:30 – 9:45 AMStandupHuddle · #product
    2. Mara presents the onboarding flow; bring one question each.

    3. 4 – 5 PMMetrics walkthrough
  2. Thursday, November 19

    1. 8 – 8:45 AMDentist5th Ave
    2. 3:30 – 4:30 PMSprint retro
  3. Friday, November 20

    1. All dayProduct offsite
View code
tsx
<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.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
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.

PropTypeRequiredDescription
labelstringYesThe region's accessible name, such as "Upcoming events".
idstringYesUnique on the page; prefixes every event's popover id.
daysDay[]Yes
todaystringNoToday, as YYYY-MM-DD; its heading takes the brand colour.
localestringNoFormats the day headings. @default "en"
emptyRemixNodeNoShown in place of the list when days is empty, such as "Nothing scheduled".

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

@sdxc/ui

Can’t find it? Contact us