Skip to content

Date Picker

Last updated 27 Oct 2026

NbDatePicker lets users select a date via a text input and an optional calendar dropdown. It comes in three types: simple (text only), single (with calendar), and range (start and end dates with calendar).

Keyboard Navigation ​

The calendar dropdown follows the WAI-ARIA Date Picker Dialog pattern for full keyboard accessibility.

Input field:

KeyAction
EnterOpens the calendar and focuses the selected or current date
ArrowDownOpens the calendar and focuses the selected or current date
EscapeCloses the calendar

Calendar grid:

KeyAction
ArrowRightMove to the next day
ArrowLeftMove to the previous day
ArrowDownMove to the same day in the next week
ArrowUpMove to the same day in the previous week
HomeMove to the first day of the current week
EndMove to the last day of the current week
PageUpMove to the same date in the previous month
PageDownMove to the same date in the next month
Shift+PageUpMove to the same date in the previous year
Shift+PageDownMove to the same date in the next year
Enter / SpaceSelect the focused date and close the calendar
EscapeClose the calendar without selecting
TabClose the calendar and return focus to the input

The calendar header also provides clickable previous/next month (single caret) and previous/next year (double caret) buttons.