Dates
Date picker
One field for a day, a day and a time, a range or a time. The parts are typed in the language’s order; a calendar opens from the field.
Dates
One field for a day, a day and a time, a range or a time. The parts are typed in the language’s order; a calendar opens from the field.
Change the props on the right. The date picker and its code follow.
2026-12-04
import { DatePicker } from 'omuk-ui/date-picker';
<DatePicker
aria-label="Due date"
value={value}
onChange={setValue}
/>The value is ISO text, such as 2026-12-04. Type the parts in the language’s order, step them with the arrow keys, or open the calendar from the button in the field.
2026-12-04
With granularity set to minute, the field adds the hour and the minute, and the value becomes 2026-12-01T09:30. The calendar stays open after a pick, so the time can follow.
2026-12-01T09:30
In range mode, the value is a start and an end. Presets sit beside the calendar and pick a whole range at once; maxValue stops the range at today.
No range
In time mode, there is no calendar, and the value is 14:30. The hours are 12 or 24 by the language, or as hourCycle says. showClear adds a clear button while there is a value.
08:00
One component in three modes. The type of the value follows mode; the calendar options do not apply to a time.
In the field. The calendar’s keys are on the Calendar page.