Date picker

Also called datepicker, calendar picker, or date range picker

A form control that opens a small calendar so people can pick a date, or a range of dates, by clicking days.

What is Date picker?

A date picker pairs a text field with a calendar grid. Clicking the field opens the calendar right below it, arrows page between months, and clicking a day fills in the field. A range picker takes two clicks, a start and an end, and shades the days in between.

Use it when the day matters in context, such as booking a stay, scheduling a meeting, or filtering a report by date range. For a birthday or another date far in the past, separate month, day, and year fields are faster than paging back through decades of calendars.

Let people type the date as well, and show the expected format. Disable days that cannot be chosen, like past dates or fully booked nights. A complete picker works from the keyboard: arrow keys move between days, Page Up and Page Down change the month, Enter picks, and Escape closes.

The browser’s built-in <input type="date"> is accessible and works well on phones. Reach for a custom picker when you need ranges, custom styling, or extra information on each day, such as prices.

All terms

Popover

A small floating panel anchored to the button that opened it, often with an arrow, holding a few controls and closing when you click outside.

Combobox

A text field with a dropdown list that filters as you type, so people can pick one option from a long list quickly.

Direction-aware transition

A transition that slides new content in from the side you are heading toward, so going forward and going back move in opposite directions.

Inline validation

Form checking that happens right next to each field as you fill it in, showing an error or a checkmark before you press Submit.