Calendar
Days, months and years in the app's language — one day, several, or a range; reached by the keyboard across months; a [formField]. In the look of the app's style.
Usage
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';import { SiChevronLeftIcon, SiChevronRightIcon,} from '@semantic-icons/lucide-icons';
@Component({ selector: 'app-calendar-usage-demo', imports: [ ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, ScFrame, SiChevronLeftIcon, SiChevronRightIcon, ], template: ` <div scCalendar #cal="scCalendar" aria-label="Appointment" [(value)]="date" scFrame > <div scCalendarHeader> <button scCalendarPrevious> <svg siChevronLeftIcon></svg> <span class="sr-only">{{ previousLabel[cal.view()] }}</span> </button> <button scCalendarNext> <svg siChevronRightIcon></svg> <span class="sr-only">{{ nextLabel[cal.view()] }}</span> </button> </div> </div> `, host: { class: 'flex w-full justify-center' }, encapsulation: ViewEncapsulation.None,})export class CalendarUsageDemo { private readonly date = signal<ScCalendarValue>( Temporal.PlainDate.from('2026-10-14'), ); private readonly previousLabel = { day: 'Previous month', month: 'Previous year', year: 'Previous years', }; private readonly nextLabel = { day: 'Next month', month: 'Next year', year: 'Next years', };}Anatomy
The calendar draws its days, months and years; the header's arrows, the footer and its buttons, and each day's extra content are yours.
import { ScCalendar, ScCalendarHeader, ScCalendarPrevious, ScCalendarNext, ScCalendarDay, ScCalendarFooter, ScCalendarToday, ScCalendarClear,} from '@semantic-components/ui';<div scCalendar #cal="scCalendar" aria-label="…" [(value)]="…"> <div scCalendarHeader> <button scCalendarPrevious>…</button> <button scCalendarNext>…</button> </div> <ng-template scCalendarDay let-day>…</ng-template> <div scCalendarFooter> <button scCalendarToday>…</button> <button scCalendarClear>…</button> </div></div>Accessibility
- A grid per month (role="grid"), named by the month; every word — days, months, the heading — from Intl, in the locale.
- One Tab stop: the focused day. The arrows, Home and End, Page Up and Page Down (with Shift, years) move it, across months; Enter or Space picks it. The heading zooms out: months, then years.
- Today is aria-current="date"; picked days aria-selected; unavailable ones aria-disabled. The heading is announced as it changes.
- Name the arrows (sr-only text) and the calendar (aria-label); say what a day's extra content means in sr-only text.
Examples
Basic
December 2026
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| Sunday, November 29, 2026 | Monday, November 30, 2026 | Tuesday, December 1, 2026 | Wednesday, December 2, 2026 | Thursday, December 3, 2026 | Friday, December 4, 2026 | Saturday, December 5, 2026 |
| Sunday, December 6, 2026 | Monday, December 7, 2026 | Tuesday, December 8, 2026 | Wednesday, December 9, 2026 | Thursday, December 10, 2026 | Friday, December 11, 2026 | Saturday, December 12, 2026 |
| Sunday, December 13, 2026 | Monday, December 14, 2026 | Tuesday, December 15, 2026 | Wednesday, December 16, 2026 | Thursday, December 17, 2026 | Friday, December 18, 2026 | Saturday, December 19, 2026 |
| Sunday, December 20, 2026 | Monday, December 21, 2026 | Tuesday, December 22, 2026 | Wednesday, December 23, 2026 | Thursday, December 24, 2026 | Friday, December 25, 2026 | Saturday, December 26, 2026 |
| Sunday, December 27, 2026 | Monday, December 28, 2026 | Tuesday, December 29, 2026 | Wednesday, December 30, 2026 | Thursday, December 31, 2026 | Friday, January 1, 2027 | Saturday, January 2, 2027 |
import { Component, ViewEncapsulation } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, ScFrame,} from '@semantic-components/ui';import { SiChevronLeftIcon,Today and clear
October 2026
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| Sunday, September 27, 2026 | Monday, September 28, 2026 | Tuesday, September 29, 2026 | Wednesday, September 30, 2026 | Thursday, October 1, 2026 | Friday, October 2, 2026 | Saturday, October 3, 2026 |
| Sunday, October 4, 2026 | Monday, October 5, 2026 | Tuesday, October 6, 2026 | Wednesday, October 7, 2026 | Thursday, October 8, 2026 | Friday, October 9, 2026 | Saturday, October 10, 2026 |
| Sunday, October 11, 2026 | Monday, October 12, 2026 | Tuesday, October 13, 2026 | Wednesday, October 14, 2026 | Thursday, October 15, 2026 | Friday, October 16, 2026 | Saturday, October 17, 2026 |
| Sunday, October 18, 2026 | Monday, October 19, 2026 | Tuesday, October 20, 2026 | Wednesday, October 21, 2026 | Thursday, October 22, 2026 | Friday, October 23, 2026 | Saturday, October 24, 2026 |
| Sunday, October 25, 2026 | Monday, October 26, 2026 | Tuesday, October 27, 2026 | Wednesday, October 28, 2026 | Thursday, October 29, 2026 | Friday, October 30, 2026 | Saturday, October 31, 2026 |
October 14, 2026
import { Component, ViewEncapsulation, computed, signal } from '@angular/core';import { ScCalendar, ScCalendarClear, ScCalendarFooter, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, ScCalendarToday, type ScCalendarValue,Range
October – November 2026
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| Thursday, October 1, 2026 | Friday, October 2, 2026 | Saturday, October 3, 2026 | ||||
| Sunday, October 4, 2026 | Monday, October 5, 2026 | Tuesday, October 6, 2026 | Wednesday, October 7, 2026 | Thursday, October 8, 2026 | Friday, October 9, 2026 | Saturday, October 10, 2026 |
| Sunday, October 11, 2026 | Monday, October 12, 2026 | Tuesday, October 13, 2026 | Wednesday, October 14, 2026 | Thursday, October 15, 2026 | Friday, October 16, 2026 | Saturday, October 17, 2026 |
| Sunday, October 18, 2026 | Monday, October 19, 2026 | Tuesday, October 20, 2026 | Wednesday, October 21, 2026 | Thursday, October 22, 2026 | Friday, October 23, 2026 | Saturday, October 24, 2026 |
| Sunday, October 25, 2026 | Monday, October 26, 2026 | Tuesday, October 27, 2026 | Wednesday, October 28, 2026 | Thursday, October 29, 2026 | Friday, October 30, 2026 | Saturday, October 31, 2026 |
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| Sunday, November 1, 2026 | Monday, November 2, 2026 | Tuesday, November 3, 2026 | Wednesday, November 4, 2026 | Thursday, November 5, 2026 | Friday, November 6, 2026 | Saturday, November 7, 2026 |
| Sunday, November 8, 2026 | Monday, November 9, 2026 | Tuesday, November 10, 2026 | Wednesday, November 11, 2026 | Thursday, November 12, 2026 | Friday, November 13, 2026 | Saturday, November 14, 2026 |
| Sunday, November 15, 2026 | Monday, November 16, 2026 | Tuesday, November 17, 2026 | Wednesday, November 18, 2026 | Thursday, November 19, 2026 | Friday, November 20, 2026 | Saturday, November 21, 2026 |
| Sunday, November 22, 2026 | Monday, November 23, 2026 | Tuesday, November 24, 2026 | Wednesday, November 25, 2026 | Thursday, November 26, 2026 | Friday, November 27, 2026 | Saturday, November 28, 2026 |
| Sunday, November 29, 2026 | Monday, November 30, 2026 |
October 12, 2026 – October 16, 2026
import { Component, ViewEncapsulation, computed, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarRange, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';Multiple
October 2026
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| Sunday, September 27, 2026 | Monday, September 28, 2026 | Tuesday, September 29, 2026 | Wednesday, September 30, 2026 | Thursday, October 1, 2026 | Friday, October 2, 2026 | Saturday, October 3, 2026 |
| Sunday, October 4, 2026 | Monday, October 5, 2026 | Tuesday, October 6, 2026 | Wednesday, October 7, 2026 | Thursday, October 8, 2026 | Friday, October 9, 2026 | Saturday, October 10, 2026 |
| Sunday, October 11, 2026 | Monday, October 12, 2026 | Tuesday, October 13, 2026 | Wednesday, October 14, 2026 | Thursday, October 15, 2026 | Friday, October 16, 2026 | Saturday, October 17, 2026 |
| Sunday, October 18, 2026 | Monday, October 19, 2026 | Tuesday, October 20, 2026 | Wednesday, October 21, 2026 | Thursday, October 22, 2026 | Friday, October 23, 2026 | Saturday, October 24, 2026 |
| Sunday, October 25, 2026 | Monday, October 26, 2026 | Tuesday, October 27, 2026 | Wednesday, October 28, 2026 | Thursday, October 29, 2026 | Friday, October 30, 2026 | Saturday, October 31, 2026 |
2 days: 5, 7
import { Component, ViewEncapsulation, computed, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';import {Booked dates
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScCard, ScCardBody,} from '@semantic-components/ui';Min, max and unavailable
November 2026
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| Sunday, November 1, 2026 | Monday, November 2, 2026 | Tuesday, November 3, 2026 | Wednesday, November 4, 2026 | Thursday, November 5, 2026 | Friday, November 6, 2026 | Saturday, November 7, 2026 |
| Sunday, November 8, 2026 | Monday, November 9, 2026 | Tuesday, November 10, 2026 | Wednesday, November 11, 2026 | Thursday, November 12, 2026 | Friday, November 13, 2026 | Saturday, November 14, 2026 |
| Sunday, November 15, 2026 | Monday, November 16, 2026 | Tuesday, November 17, 2026 | Wednesday, November 18, 2026 | Thursday, November 19, 2026 | Friday, November 20, 2026 | Saturday, November 21, 2026 |
| Sunday, November 22, 2026 | Monday, November 23, 2026 | Tuesday, November 24, 2026 | Wednesday, November 25, 2026 | Thursday, November 26, 2026 | Friday, November 27, 2026 | Saturday, November 28, 2026 |
| Sunday, November 29, 2026 | Monday, November 30, 2026 | Tuesday, December 1, 2026 | Wednesday, December 2, 2026 | Thursday, December 3, 2026 | Friday, December 4, 2026 | Saturday, December 5, 2026 |
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';import {Months and years
2026
January 2026
February 2026
March 2026
April 2026
May 2026
June 2026
July 2026
August 2026
September 2026
October 2026
November 2026
December 2026
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';import {Custom days
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarDay, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScCard, ScCardBody,Events
October 2026
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| Sunday, September 27, 2026 | Monday, September 28, 2026 | Tuesday, September 29, 2026 | Wednesday, September 30, 2026 | Thursday, October 1, 2026 | Friday, October 2, 2026 | Saturday, October 3, 2026 |
| Sunday, October 4, 2026 | Monday, October 5, 2026 | Tuesday, October 6, 2026, 2 events | Wednesday, October 7, 2026 | Thursday, October 8, 2026 | Friday, October 9, 2026 | Saturday, October 10, 2026 |
| Sunday, October 11, 2026 | Monday, October 12, 2026 | Tuesday, October 13, 2026 | Wednesday, October 14, 2026, 1 events | Thursday, October 15, 2026 | Friday, October 16, 2026 | Saturday, October 17, 2026 |
| Sunday, October 18, 2026 | Monday, October 19, 2026 | Tuesday, October 20, 2026 | Wednesday, October 21, 2026 | Thursday, October 22, 2026, 3 events | Friday, October 23, 2026 | Saturday, October 24, 2026 |
| Sunday, October 25, 2026 | Monday, October 26, 2026 | Tuesday, October 27, 2026 | Wednesday, October 28, 2026 | Thursday, October 29, 2026 | Friday, October 30, 2026 | Saturday, October 31, 2026 |
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarDay, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';Presets
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScButton, ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScCard, ScCardBody,Time
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScCard, ScCardBody, ScCardFooter,Week numbers
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScCard, ScCardBody,} from '@semantic-components/ui';Locale and week numbers
octobre 2026
| lundi | mardi | mercredi | jeudi | vendredi | samedi | dimanche | |
|---|---|---|---|---|---|---|---|
| 40 | lundi 28 septembre 2026 | mardi 29 septembre 2026 | mercredi 30 septembre 2026 | jeudi 1 octobre 2026 | vendredi 2 octobre 2026 | samedi 3 octobre 2026 | dimanche 4 octobre 2026 |
| 41 | lundi 5 octobre 2026 | mardi 6 octobre 2026 | mercredi 7 octobre 2026 | jeudi 8 octobre 2026 | vendredi 9 octobre 2026 | samedi 10 octobre 2026 | dimanche 11 octobre 2026 |
| 42 | lundi 12 octobre 2026 | mardi 13 octobre 2026 | mercredi 14 octobre 2026 | jeudi 15 octobre 2026 | vendredi 16 octobre 2026 | samedi 17 octobre 2026 | dimanche 18 octobre 2026 |
| 43 | lundi 19 octobre 2026 | mardi 20 octobre 2026 | mercredi 21 octobre 2026 | jeudi 22 octobre 2026 | vendredi 23 octobre 2026 | samedi 24 octobre 2026 | dimanche 25 octobre 2026 |
| 44 | lundi 26 octobre 2026 | mardi 27 octobre 2026 | mercredi 28 octobre 2026 | jeudi 29 octobre 2026 | vendredi 30 octobre 2026 | samedi 31 octobre 2026 | dimanche 1 novembre 2026 |
import { Component, LOCALE_ID, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';import {Outside days
February 2026
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| Sunday, February 1, 2026 | Monday, February 2, 2026 | Tuesday, February 3, 2026 | Wednesday, February 4, 2026 | Thursday, February 5, 2026 | Friday, February 6, 2026 | Saturday, February 7, 2026 |
| Sunday, February 8, 2026 | Monday, February 9, 2026 | Tuesday, February 10, 2026 | Wednesday, February 11, 2026 | Thursday, February 12, 2026 | Friday, February 13, 2026 | Saturday, February 14, 2026 |
| Sunday, February 15, 2026 | Monday, February 16, 2026 | Tuesday, February 17, 2026 | Wednesday, February 18, 2026 | Thursday, February 19, 2026 | Friday, February 20, 2026 | Saturday, February 21, 2026 |
| Sunday, February 22, 2026 | Monday, February 23, 2026 | Tuesday, February 24, 2026 | Wednesday, February 25, 2026 | Thursday, February 26, 2026 | Friday, February 27, 2026 | Saturday, February 28, 2026 |
import { Component, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';import {In a form
import { Component, ViewEncapsulation, signal } from '@angular/core';import { FormField, FormRoot, form, required } from '@angular/forms/signals';import { ScButton, ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScField,RTL
أكتوبر 2026
| الأحد | الاثنين | الثلاثاء | الأربعاء | الخميس | الجمعة | السبت |
|---|---|---|---|---|---|---|
| الأحد، 27 سبتمبر 2026 | الاثنين، 28 سبتمبر 2026 | الثلاثاء، 29 سبتمبر 2026 | الأربعاء، 30 سبتمبر 2026 | الخميس، 1 أكتوبر 2026 | الجمعة، 2 أكتوبر 2026 | السبت، 3 أكتوبر 2026 |
| الأحد، 4 أكتوبر 2026 | الاثنين، 5 أكتوبر 2026 | الثلاثاء، 6 أكتوبر 2026 | الأربعاء، 7 أكتوبر 2026 | الخميس، 8 أكتوبر 2026 | الجمعة، 9 أكتوبر 2026 | السبت، 10 أكتوبر 2026 |
| الأحد، 11 أكتوبر 2026 | الاثنين، 12 أكتوبر 2026 | الثلاثاء، 13 أكتوبر 2026 | الأربعاء، 14 أكتوبر 2026 | الخميس، 15 أكتوبر 2026 | الجمعة، 16 أكتوبر 2026 | السبت، 17 أكتوبر 2026 |
| الأحد، 18 أكتوبر 2026 | الاثنين، 19 أكتوبر 2026 | الثلاثاء، 20 أكتوبر 2026 | الأربعاء، 21 أكتوبر 2026 | الخميس، 22 أكتوبر 2026 | الجمعة، 23 أكتوبر 2026 | السبت، 24 أكتوبر 2026 |
| الأحد، 25 أكتوبر 2026 | الاثنين، 26 أكتوبر 2026 | الثلاثاء، 27 أكتوبر 2026 | الأربعاء، 28 أكتوبر 2026 | الخميس، 29 أكتوبر 2026 | الجمعة، 30 أكتوبر 2026 | السبت، 31 أكتوبر 2026 |
import { Dir } from '@angular/cdk/bidi';import { Component, LOCALE_ID, ViewEncapsulation, signal } from '@angular/core';import { ScCalendar, ScCalendarHeader, ScCalendarNext, ScCalendarPrevious, type ScCalendarValue, ScFrame,} from '@semantic-components/ui';API reference
Each part takes class, merged over the style (cn: a later class wins).
| Part | Selector | Description |
|---|---|---|
ScCalendar | div[scCalendar] | [(value)], mode ('single', 'multiple', 'range'), minDate, maxDate, unavailable, firstDayOfWeek, numberOfMonths, showOutsideDays, fixedWeeks, showWeekNumbers, weekdayFormat ('short', 'long', 'narrow': the day names — short by default, narrow where a language's short names are whole words; long falls back to short where a name doesn't fit its column), startView (the view it opens on while empty; with a value, its days); a [formField]. Its cells from the preset's --cell-size and --cell-radius. |
ScCalendarHeader, ScCalendarHeading | div[scCalendarHeader], button[scCalendarHeading] | Your arrows, and the heading — a button that zooms out (days, months, years); write your own to replace it. |
ScCalendarPrevious, ScCalendarNext | button[scCalendarPrevious], button[scCalendarNext] | A month (or year, or years) back and on: the style's button, ghost and a cell square; named by you. |
ScCalendarDay | ng-template[scCalendarDay] | Your content under each day number: its context has the day, selected, today, unavailable, outside. |
ScCalendarFooter, ScCalendarToday, ScCalendarClear | div[…], button[…], button[…] | A row of actions under it: today, shown and picked; clear. |