DatePicker
Form field that opens a month grid to pick one date.
A full calendar of events by month, week, day, or list. Browse dates, filter calendars, add / edit / delete events.
A full calendar of events by month, week, day, or list. Browse dates, filter calendars, add, edit, or delete events. Not a date field — use DatePicker for that.
Month around today. Click a day to add an event, an event to edit it, or +N more to open the day.
Use Calendar for schedules: shifts, PTO, billing runs, meetings. Pass events and, if they belong to calendars, calendars. The toolbar has a month picker, New event, previous and next, Today, Calendars, and a Month / Week / Day / List switch. Month shows up to 3 events a day, then +N more. Week and Day show all-day events on top and timed events on an hourly grid. List shows the week’s events by day. Dates are local ISO: 2024-10-09 all-day, 2024-10-09T08:30 timed. Tones are brand, success, warning, danger, info, and accent. Do not pick a date in a form with this — use DatePicker. Do not put a primary Button in the toolbar; Save in the event form is the primary.
import { Calendar } from "agentic-ds-kit";From contracts/calendar.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| label | string | No | Calendar | Names the calendar region for screen readers. |
| events | CalendarEvent[] | No | — | Controlled events. start and end are local ISO: 2024-10-09 all-day, 2024-10-09T08:30 timed. An all-day end is the last day, inclusive. A timed event with no end lasts one hour. tone overrides the source calendar’s color. |
| defaultEvents | CalendarEvent[] | No | — | Starting events when the Calendar keeps changes itself. |
| onEventsChange | function | No | — | Called with the full new list after an event is created, edited, or deleted. |
| onEventClick | function | No | — | Called when an event is clicked, before the edit drawer opens (or instead of it when readOnly). |
| calendars | CalendarSource[] | No | — | Sources. Color events, fill the event-form Calendar field, list in the Calendars drawer. hidden starts one hidden. Without calendars there is no Calendars button. |
| onViewChange | function | No | — | — |
| views | CalendarView[] | No | — | Which views the switch offers, in order. Defaults to month, week, day, and list. With one view there is no switch. |
| date | string | No | — | Controlled focused date, YYYY-MM-DD. The view shows the month, week, or day around it. |
| defaultDate | string | No | — | The first focused date. Defaults to today. |
| onDateChange | function | No | — | — |
| startHour | number | No | 7 | Week and Day open scrolled to this hour (0–23). The whole day can still be scrolled. |
| readOnly | boolean | No | false | Hides New event and turns off creating, editing, and deleting. Events can still be clicked through onEventClick. |
| headingLevel | enum | No | 2 | Heading level of the visible range title (month, week, or day). Use 3 or 4 when the Calendar sits under a page or Section heading. |
Form field that opens a month grid to pick one date.
Simple semantic table for invoices, lists, and text rows, with optional sort, row menu, sticky header, loading, empty and error states, row dividers on or off, and one optional highlighted row.
Vertical sequence of now, next, and later for ordered multi-stage work.
Switch between related views in place.