DayStrip
A strip of days in one sideways scroller.
View code
<DayStrip
label="November 2026"
today="2026-11-18"
days={[
{ date: "2026-11-18", href: "?day=2026-11-18", note: <Dot />, label: "2 events" },
{ date: "2026-11-19", href: "?day=2026-11-19" },
{ date: "2026-11-20", href: "?day=2026-11-20", current: true, note: <Dot />, label: "1 event" },
]}
/>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 { DayStrip } from "@sdxc/ui/schedule";Renders the strip: a list of day cells in a scroller that snaps to each one. The current day fills with the brand colour, today wears a ring, and weekends dim their weekday name.
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 landmark's name, such as "November 2026". |
days | Day[] | Yes | |
today | string | No | Today, as YYYY-MM-DD, drawn with a ring. |
locale | string | No | Formats the weekday names and the days' accessible names. @default "en" |
Also accepts everything in Omit<TagProps<"nav">, "children">.