Validation
Constrain selectable dates with DatePickerRule and surface errors through Field.
Min and max bounds apply on blur and when completing segmented input. Mirror the same bounds on appearance.min_date / appearance.max_date so the calendar disables out-of-range days before the user commits an invalid value.
- Booking or scheduling forms with policy date windows
- Admin tools that must reject dates outside a fiscal or contract period
- Any labeled field where validation messages should appear below the control
- Define min and max as
Signal<Option<OrbitalDateTime>>. - Attach rules on
DatePickerBind:DatePickerRule::min_date(min)andDatePickerRule::max_date(max). - Pass the same signals to
appearance.min_dateandappearance.max_dateon the picker. - Wrap the picker in Field with a stable
namefor accessible error association.
Out of range
Allowed range is 01/01/2025 through 01/01/2026 (US date mask, UTC bounds). Type a date outside that window — for example 01/01/2020 or 01/02/2027 — then tab away; the Field shows a validation error on blur.