# MonthView

> A calendar's month: weeks of day cells, all-day and multi-day events as bars across the days they cover, timed events as a dot, a time and a title, and a "+N more" link where a day holds more than fits.

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

## Examples

```tsx
<MonthView id="nov" month="2026-11" today="2026-11-18" labels={{ more: "+{count} more", count: "{count} events" }}
	events={[{ id: "e1", start: "2026-11-18", time: "9 AM", title: "Standup" }]} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `id` | `string` | Unique on the page; prefixes every popover id. |
| `month` | `string` | The month, as `YYYY-MM`. |
| `events` | `Event[]` |  |
| `today?` | `string` | Today, as `YYYY-MM-DD`. |
| `selected?` | `string` | The day the page focuses on, as `YYYY-MM-DD`. |
| `weekStartsOn?` | `0 \| 1` | 0 for Sunday, 1 for Monday. @default 0 |
| `dayHref?` | `(date: string) => string` | Where a day's number and its "+N more" lead, such as its day view. |
| `max?` | `number` | Entries a day shows before "+N more". @default 3 |
| `locale?` | `string` |  |
| `labels` | `Labels` |  |

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

