Overview

tng-datepicker is a date input that implements ControlValueAccessor. It provides a text input (with smart parsing), a calendar toggle, and an overlay calendar with month/year navigation. Value is Date | null. Optional min and max constrain the selectable range.

CVA min / max Overlay calendar Slot hooks Standalone
Reactive Forms

Quick example

Basic
HTMLTSCSS

<form [formGroup]="form">
  <tng-datepicker formControlName="period" [min]="min" [max]="max" />
</form>

Value: Feb 17, 2026

Features

min / max

Optional Date | null to restrict the selectable range.

displayFormat / previewFormat

Input and panel preview format (e.g. DD/MM/YYYY, DD MMM YYYY). Supports locale.

Slot hooks

slot keys: input, toggle, panel, and many panel sub-elements for full theming.