SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

MonthView

A calendar's month.

View code
tsx
<MonthView
	id="november"
	month="2026-11"
	today="2026-11-18"
	weekStartsOn={1}
	dayHref={(date) => `/day/${date}`}
	labels={{ more: "+{count} more", count: "{count} events" }}
	events={[
		{ id: "trip", start: "2026-11-13", end: "2026-11-16", title: "Lisbon trip" },
		{ id: "standup", start: "2026-11-18", time: "9a", title: "Standup" },
	]}
/>

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 { MonthView } from "@sdxc/ui/schedule";

Renders the month: a header of weekday names over one grid per week. Bars take the week's top rows, stacked so none overlap, and each day lists its timed events under them until max, where a "+N more" link to the day takes over.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
idstringYesUnique on the page; prefixes every popover id.
monthstringYesThe month, as YYYY-MM.
eventsEvent[]Yes
todaystringNoToday, as YYYY-MM-DD.
selectedstringNoThe day the page focuses on, as YYYY-MM-DD.
weekStartsOn0 | 1No0 for Sunday, 1 for Monday. @default 0
dayHref(date: string) => stringNoWhere a day's number and its "+N more" lead, such as its day view.
maxnumberNoEntries a day shows before "+N more". @default 3
localestringNo
labelsLabelsYes

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

@sdxc/ui

Can’t find it? Contact us