Components
Components
DatePicker
Accessible date field with calendar popover.
newfree
Install
@hewnui/ui · hewnui
DatePicker wraps React Aria date segments and calendar navigation. Lives under Date and Time in the component gallery.
Ship date
mmddyyyy
Launch window
mmddyyyy
Archived sprint
mmddyyyy
Usage
The field shows localized segments (year, month, day). Open the calendar from the trailing button or by completing segment focus and activating the popover trigger.
States
- Empty / valued — segments show placeholders until filled
- Required — set
isRequiredwhen the date cannot be blank - Disabled — set
isDisabledto block segment editing and the calendar - Focus — focused segments and calendar cells use a visible ring
Keyboard
Tabmoves between the date group and the calendar button- Arrow keys and typing edit the focused segment
EnterorSpaceon the calendar button opens the popover- Inside the grid, arrows move between days;
Enterselects Escapecloses the calendar and returns focus to the fieldPageUp/PageDownmove by month when the grid is focused
Accessibility
- Segmented date editing keeps each part individually reachable
- Calendar grid supports full keyboard navigation
- Localized formatting and calendar labels come from React Aria
- The field group is named by the
labelprop
API reference
Props for DatePicker from @hewnui/ui/date-picker. Generated from component types — not hand-written.
Prop
Type