Skip to content

DateRangePicker

A two-date range field with one calendar (ISO dates).

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-range-picker on Web
exponential-ui-date-range-picker on iOS
exponential-ui-date-range-picker on Android
exponential-ui-date-range-picker on Desktop
Prop Type Required Bindable Description
label string – – The field label.
name string yes – The field’s key in the submitted data ({start, end}).
start date – yes The first day as yyyy-mm-dd, or empty.
end date – yes The last 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

No basic catalog component maps here.

A native component: every renderer paints it directly.

Role: combobox

as DatePicker; the second choice ends the range

Keys Action
– As DatePicker; the first Enter sets the start, the second the end

Recipe parts: DateRangePicker/root DateRangePicker/label DateRangePicker/trigger DateRangePicker/calendar DateRangePicker/day DateRangePicker/range

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

Themes · Write a theme

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