Calendar
A full calendar of events by month, week, day, or list.
Form field that opens a month grid to pick one date.
Form field that opens a month grid to pick one date. Sizes sm, md and lg match Input. Wrap with Field. For a range use DateRangePicker. Not a native date input. Not the event Calendar.
Trigger shows the chosen day in Geist Mono. The overlay has the shared header (icon, the picked day, Choose date, Close) above the month grid. Today has a bar under the number. Escape, Close or a click outside closes it.
Use DatePicker in a form. Use Calendar for a schedule of events. Value is YYYY-MM-DD. Do not invent Popover or a native date input. A start and end date is DateRangePicker; mode="range" is deprecated.
import { DatePicker } from "agentic-ds-kit";From contracts/datepicker.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 |
|---|---|---|---|---|
| id | string | Yes | — | For Field htmlFor |
| mode | single | range | No | single | single is one YYYY-MM-DD. range ({ start, end? }) is deprecated: it still works, with a warning in development. Use DateRangePicker, with presets={[]} for the month grid only. |
| value | string | { start: string, end?: string } | No | — | controlled. string when single; { start, end? } when range. YYYY-MM-DD. |
| defaultValue | string | { start: string, end?: string } | No | — | uncontrolled. string when single; { start, end? } when range. |
| onValueChange | function | No | — | (date: string) => void when single; (range: { start, end?: string }) => void when range |
| size | md | sm | lg | No | md | Trigger height sm 32, md 36, lg 40, like Input. The overlay month grid is sm when size is sm, else md. |
| placeholder | string | No | Pick a date | Defaults to Pick a date, or Pick dates when mode is range |
| disabled | boolean | No | false | — |
| error | boolean | No | false | — |
| minDate | string | No | — | Passed to the overlay month grid |
| maxDate | string | No | — | Passed to the overlay month grid |
| weekStart | enum | No | 0 | First day of the week: 0 Sunday, 1 Monday. Moves the weekday row and Home/End. |
| isDateDisabled | function | No | — | (date: string) => boolean. Turns single days off, like holidays or weekends. Those days, and days outside minDate/maxDate, are struck through and named unavailable. |
| name | string | No | — | Hidden input for forms. Range submits start/end, like 2026-08-10/2026-08-18 |
| describedBy | string | No | — | Field wires hint and error ids onto the trigger |
A full calendar of events by month, week, day, or list.
Pick a date range from named presets such as This month or Last 30 days, from two months side by side, or by typing the start and end, then Apply.
Pick a calendar date and a time in one field.
An editable table: people click a cell to add or change its content, like rule conditions, line items, or mappings.