Skip to content

Date Range Picker

Forms

A date range selector with a single trigger button that opens a dual-month calendar popup. Users click to select a start date, then an end date, with a live range preview while hovering. Includes optional preset shortcuts and a clear button.

atlas-date-range-picker

Examples

With presets

Pick a start and end date; showPresets adds shortcuts such as “Last 7 days”.

— → —

Bounds, format and separator

minDate and maxDate (ISO dates) limit what can be picked; dates outside are disabled in the calendar. dateFormat and separator shape the trigger text.

Value: 2026-04-06 / 2026-04-17

API

Generated from the library source, so it always matches the code.

AtlasDateRangePickerComponent atlas-date-range-picker

InputTypeDefaultDescription
value two-wayDateRange— The range as ISO dates { start, end } ; either is null until chosen (two-way, or Signal Forms [field] ).
disabled booleanfalse Disables the control. Set automatically when the control is bound with Signal Forms [field] .
errors readonly ValidationError.WithOptionalFieldTree[][] Validation errors of the bound field. Set by Signal Forms [field] .
required booleanfalse Whether a value is required. Set by Signal Forms [field] .
invalid booleanfalse Whether the field is invalid. Set by Signal Forms [field] .
touched booleanfalse Whether the user has interacted with the field. Set by Signal Forms [field] .
readonly booleanfalse Whether the field is read-only. Set by Signal Forms [field] .
pending booleanfalse Whether async validation is running. Set by Signal Forms [field] .
name string'' Name of the field. Set by Signal Forms [field] .
placeholder string'Select date range...' Trigger text when no range is set.
ariaLabel string | nullnull Accessible name when no visible label names the control (use one or the other, WCAG 2.5.3).
inputId string | undefinedundefinedid of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one.
ariaDescribedBy string | nullnull Extra ids for aria-describedby , merged with the surrounding form field's hint or error.
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
dateFormat AtlasDateFormat | undefinedundefined How the dates are displayed in the trigger. Defaults to the configured date format.
minDate string'' Minimum selectable date (ISO string, e.g. '2024-01-01')
maxDate string'' Maximum selectable date (ISO string)
showPresets booleanfalse Whether to show presets sidebar
presets DateRangePreset[][] Preset ranges to display
separator string'→' Separator between start and end in display
OutputPayloadDescription
touchvoid Emits when the control loses focus, so Signal Forms marks the field touched.

Types

DateRange

PropertyTypeDescription
start string | null Start date (ISO string YYYY-MM-DD or null)
end string | null End date (ISO string YYYY-MM-DD or null)