Component
DateTimePicker
Pick a calendar date and a time in one field.
Pick a time of day as hour and minute, in 12-hour or 24-hour form.
Hour and minute. Arrow keys change the focused part. 12-hour mode has an AM/PM button. The value is always HH:mm.
A date and a time together is DateTimePicker. A day only is DatePicker.
Wrap with Field. Focus the hour or the minute, then ArrowUp and ArrowDown. Do not use a native time input.
import { TimePicker } from "agentic-ds-kit";From contracts/timepicker.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 | — | — |
| size | md | sm | No | md | — |
| value | string | No | — | Controlled HH:mm in 24-hour form. |
| defaultValue | string | No | — | — |
| onValueChange | function | No | — | (value: string) => void |
| hourCycle | 12 | 24 | No | 12 | — |
| disabled | boolean | No | false | — |
| error | boolean | No | false | — |
| name | string | No | — | — |
| describedBy | string | No | — | — |
| ariaLabel | string | No | — | — |