Skip to content

Datepicker

Forms

A calendar dropdown for date selection with locale-aware formatting.

atlas-datepicker

Examples

Basic

The value is an ISO date string ( YYYY-MM-DD ); dateFormat controls how the trigger shows it.

Value: —

Date formats

The value is always an ISO date ( 2026-03-12 ); dateFormat only changes how the trigger shows it: short , medium or long , in the configured locale. Without it the configured format applies.

Value: 2026-03-12

With Signal Forms

[formField] binds the ISO date. A custom rule rejects dates in the past; the error describes the trigger, so it is read when the picker gets focus.

API

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

AtlasDatepickerComponent atlas-datepicker

InputTypeDefaultDescription
value two-waystring'' The date as an ISO string ( YYYY-MM-DD ); '' when empty (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 | undefinedundefined Trigger text when no date is set. Defaults to the configured datepicker.placeholder .
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 Per-instance date format override. Overrides the global dateFormat from provideAtlas() .
OutputPayloadDescription
touchvoid Emits when the control loses focus, so Signal Forms marks the field touched.