Date Range Input

A range of days typed in one box: your two Date Inputs, start and end, named by you. In a form, a range of Temporal.PlainDate; in a Date Range Picker, the picker's field.

FormsExperimental

Usage

Usage

Check-in, then check-out.

2026-11-02 → 2026-11-06

import { Component, ViewEncapsulation, signal } from '@angular/core';import {  type ScCalendarRange,  ScDateInput,  ScDateRangeInput,  ScField,  ScFieldDescription,  ScLabel,} from '@semantic-components/ui';

Anatomy

The box is the range; inside it, your two scDateInputs — part="start" and part="end", each named by you — and what goes between them. The ends lose their own box: the range draws one round both.

import { ScDateInput, ScDateRangeInput } from '@semantic-components/ui';
<div scDateRangeInput [formField]="form.stay">  <div scDateInput part="start" aria-label="Check-in"></div>  <span aria-hidden="true">–</span>  <div scDateInput part="end" aria-label="Check-out"></div></div>

The value

{ from, to } — the Calendar's range — or null, through [formField] or [(value)]. Each end writes its side once it is whole. A day outside the limits, an unavailable one, or an end before the start is marked invalid; whether both ends are required is your schema's to say. In a Date Range Picker, the value and the limits are the picker's.

The keys are the Date Input's, all the way through: Tab or a typed separator goes from the start's last part to the end's first.

Accessibility

  • A group, named by the field's label; each end a group named by you (Check-in, Check-out), its parts spin buttons named in the locale's words.
  • Leaving the range — not going from one end to the other — marks it touched.
  • Invalid: the box, and the parts of an end on the wrong side or out of range.

Examples

Limits

In 2026; we are closed on Mondays.

import { Component, ViewEncapsulation, signal } from '@angular/core';import {  type ScCalendarRange,  ScDateInput,  ScDateRangeInput,  ScField,  ScFieldDescription,  ScLabel,} from '@semantic-components/ui';

Locale

import { Component, LOCALE_ID, ViewEncapsulation, signal } from '@angular/core';import {  type ScCalendarRange,  ScDateInput,  ScDateRangeInput,  ScField,  ScLabel,} from '@semantic-components/ui';
/** LOCALE_ID provided as 'de-DE': each end day first, with dots. */

Disabled

import { Component, ViewEncapsulation, signal } from '@angular/core';import {  type ScCalendarRange,  ScDateInput,  ScDateRangeInput,  ScField,  ScLabel,} from '@semantic-components/ui';
/** Disabled: both ends leave the tab order. */

Form

import { Component, ViewEncapsulation, signal } from '@angular/core';import { FormField, FormRoot, form, validate } from '@angular/forms/signals';import {  ScButton,  type ScCalendarRange,  ScDateInput,  ScDateRangeInput,  ScField,  ScFieldErrors,  ScLabel,

Controlled

2026-11-02 → 2026-11-06

import { Component, ViewEncapsulation, signal } from '@angular/core';import {  ScButton,  type ScCalendarRange,  ScDateInput,  ScDateRangeInput,  ScField,  ScLabel,} from '@semantic-components/ui';

RTL

import { Dir } from '@angular/cdk/bidi';import { Component, LOCALE_ID, ViewEncapsulation, signal } from '@angular/core';import {  type ScCalendarRange,  ScDateInput,  ScDateRangeInput,  ScField,  ScLabel,} from '@semantic-components/ui';

API reference

It takes class, merged over its own (cn: a later class wins); its look is the style's segmented input. The ends are Date Inputs.

PartSelectorDescription
ScDateRangeInputdiv[scDateRangeInput] The range: a group in the style's box, its two ends inside. data-invalid, data-disabled, data-readonly, data-empty. exportAs scDateRangeInput: clear(), focus(), current(), canPick(date).
ScDateInputdiv[scDateInput][part] An end: part='start' or 'end', named by you; its box dropped in the range's.
InputTypeDefaultDescription
valueScCalendarRange | nullnull Two-way, or [formField]: { from, to }. In a Date Range Picker: the picker’s.
minDate, maxDateTemporal.PlainDate— For both ends: a day outside them is marked invalid.
unavailable(date: Temporal.PlainDate) => boolean() => false Days that can’t be picked, at either end.
disabled, readonly, required, invalid, touchedbooleanfalse Bound by [formField]; disabled, read-only and required reach both ends.