(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Date Range Picker

Link to Figma: https://www.figma.com/design/yck1tcUXgdQ5aYX6iUAwrO/GE---Astronaut-Design-System?node-id=11525-89949&t=iosNC2AkSTGs5lMh-1

Overview

Example Date Range Picker

Specs

Tokens

Token Description
labelTranslations Sets the label text displayed above the picker with support for multiple languages.
format Determines how selected dates are displayed and parsed (e.g., "DD/MM/YYYY").
minZoomMode Sets the minimum zoom level in the calendar (DAY, MONTH, YEAR).
maxZoomMode Sets the maximum zoom level in the calendar (DAY, MONTH, YEAR).
showTime Controls whether time selection is available.
showNowButton Adds a button to quickly select the current date and time.
initializeWithCurrentDate Pre-fills the picker with today as start and tomorrow as end when first displayed.
type Sets the appearance to "NORMAL" (dropdown) or "INLINE" (always visible calendar).
hidden Controls whether the component is visible in the form.
saveInLocalStorage Preserves the selected range in local storage between sessions.
defaultValue Sets the initial date range used when the form is reset.
readonly Displays the value but prevents user changes.
dataField Defines the field name used when submitting form data.
controlsRequestType Specifies how the date range data is sent in HTTP requests (BODY, HEADER, PATH).
validation Configures validation rules for the date range.
required Ensures a date range must be selected before submission.
authorizationDisable Applies a policy set that disables the component based on user permissions.
events Configures events the component can trigger or respond to.
ON_VALUE_CHANGE (Events) Triggered when the user changes the date range.
ON_INIT_BASED_ON_USER_VIEW (Events) Triggered when the component initializes in user view mode.
ON_INIT (Events) Triggered when the component is initialized.
ON_DESTROY (Events) Triggered when the component is removed from the DOM.

Structure

(Configured in Non-Visual Properties)

(Configured in Visual Properties)

Lables structure of the Date Range Picker

Styling

(Configured in Visual Properties)

Visual Properties tab

Actions & Variants

(Configured in Events)

(Configured in Visual Properties)

Authorization

(Configured in Authorization)

Validation

(Configured in Validation)

Guidelines

Usage

Sizing & Layout

States & Feedback

Data-Driven / Conditional Behavior

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Use showTime: true when hours/minutes matter. Encode time in help text while leaving time selection off. showTime
Constrain zoom to match the task (e.g., MONTH↔YEAR). Leave default zoom so users must click through days for month-level picks. minZoomMode, maxZoomMode
Pre-fill common ranges with today→tomorrow or a known default. Start empty when most users pick “today”. initializeWithCurrentDate, defaultValue
Persist the last chosen range across sessions when useful. Clear the range on reload, forcing users to re-enter. saveInLocalStorage
Use a compact explicit format to avoid truncation. Rely on ambiguous, locale-dependent browser defaults. format
Inline the calendar when range entry is frequent. Force extra clicks with a dropdown in workflows that need constant adjustment. type
Validate at the component level and mark as required when needed. Depend solely on downstream validation to catch empty/invalid ranges. validation, required
Wire downstream updates to value changes. Require a separate “Apply” button to sync data. events, ON_VALUE_CHANGE
Disable on policy while keeping it visible when awareness is needed. Hide it when users should understand they lack edit rights. authorizationDisable
Set a stable field name and request location for submissions. Let backends infer where the range will appear. dataField, controlsRequestType

Accessibility