Calendar

A flexible and accessible calendar component for selecting dates with three selection modes: single, multiple, and range. Built with modern Angular patterns and full keyboard navigation support.

PreviousNext
Su
Mo
Tu
We
Th
Fr
Sa

Installation

1

Run the CLI

Use the CLI to add the component to your project.

npx @ngzard/ui@latest add calendar

Examples

default

Su
Mo
Tu
We
Th
Fr
Sa

multiple

Su
Mo
Tu
We
Th
Fr
Sa

Selected (0) date(s).

range

Su
Mo
Tu
We
Th
Fr
Sa
From:N/A
To:N/A

with constraints

With Min/Max Date

Su
Mo
Tu
We
Th
Fr
Sa

Available dates: 1/21/2026 - 2/20/2026

Disabled

Su
Mo
Tu
We
Th
Fr
Sa

expand year selection range

Date of Birth

Su
Mo
Tu
We
Th
Fr
Sa

API Reference

z-calendar Component

Inputs

Name Type Default Description
class ClassValue '' Additional CSS classes to apply to the calendar
zMode 'single' | 'multiple' | 'range' 'single' Selection mode of the calendar
value CalendarValue null Currently selected date(s) - type depends on mode
minDate Date | null null Minimum selectable date. Also used to expand the year picker range
maxDate Date | null null Maximum selectable date. Also used to expand the year picker range
disabled boolean false Whether the calendar is disabled

Outputs

Name Type Description
dateChange EventEmitter<Date | Date[]> Emitted when date selection changes

Selection Modes

Mode Value Type Description
single Date | null Select a single date (default behavior)
multiple Date[] Select multiple individual dates (toggle on/off)
range [Date, Date?] Select a date range (click start, then end)

Methods

Name Signature Description
resetNavigation (): void Resets calendar navigation to the current value date