Skip to content

DatePicker

A calendar date field (ISO yyyy-mm-dd).

Group: Inputs · Kind: native · in the lite catalog

example

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-date-picker on Web
exponential-ui-date-picker on iOS
exponential-ui-date-picker on Android
exponential-ui-date-picker on Desktop
Prop Type Required Bindable Description
label string – – The field label.
name string yes – The field’s key in the submitted data.
value date – yes The chosen day as yyyy-mm-dd, or empty.
min date – – The earliest allowed day.
max date – – The latest allowed day.
placeholder string – – Shown while empty.
firstDayOfWeek number – – 0 (Sunday) to 6; else the locale’s.
  • on.change: runs an action

None.

none

The basic catalog’s DateTimeInput renders as DatePicker.

A native component: every renderer paints it directly.

Role: combobox

combobox opening a dialog with a grid of days

Keys Action
Enter Space ArrowDown open on the selected (else today’s) day
Arrow keys ± 1 day / ± 1 week
PageUp PageDown previous/next month (Shift: year)
Home End start/end of the week (locale week start)
Enter Space choose; Escape: close

Recipe parts: DatePicker/root DatePicker/label DatePicker/trigger DatePicker/calendar DatePicker/day

Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Form · FieldGroup · FormActions · Input · Textarea · NumberField · Checkbox · Radio