Skip to content

Inputs

Date picker

Also calleddate fieldcalendar picker

A field for choosing a date, often with a calendar popup and a way to enter the date directly.

How people describe it

  • “small calendar where I choose a day”
  • “field that opens a grid of dates”
  • “month and numbered days with one day highlighted”

Good for

  • Booking a date
  • Choosing a deadline

Don’t mix it up with

What your library calls it

LIBRARYCALLS IT
shadcn/uiCalendar + Popover (Date Picker composition)

Accessibility checklist

  • Associate a visible label and any help or error text
  • Allow keyboard entry and preserve visible focus
  • For custom calendars, manage focus and announce dates and month changes

Try it

October 2026

SuMoTuWeThFrSa

Pick a date

Arrow keys move by day and week. PageUp and PageDown change month.

Prompt

Add a labeled date picker with keyboard input and a visible selected date.

~19 estimated prompt tokensDetailed: ~64 estimated prompt tokens

Rough estimate for prompt text only; actual counts vary by model and context.

<label for="due-date">Due date</label>
<input id="due-date" name="dueDate" type="date" aria-describedby="due-date-help" style="min-height:44px; width:100%; box-sizing:border-box">
<p id="due-date-help">Choose the day this task should be finished.</p>

Used in

Explore website blueprints that use this component.