Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Nettalco/nettalco-theme/llms.txt

Use this file to discover all available pages before exploring further.

The DatePicker component provides an interactive calendar picker with support for single dates, date ranges, time selection, and multiple-month panels. Nettalco Theme defines a rich set of tokens across every sub-region: the floating panel, header, month/year navigation controls, day/month/year views, date cell sizes and selection colors, the time picker bar, and button bar — all with explicit light and dark color schemes.

Usage

<!-- Basic date picker -->
<p-datePicker [(ngModel)]="date" />

<!-- Date range -->
<p-datePicker [(ngModel)]="dateRange" selectionMode="range" />

<!-- With time -->
<p-datePicker [(ngModel)]="datetime" [showTime]="true" hourFormat="12" />

<!-- Inline calendar -->
<p-datePicker [(ngModel)]="date" [inline]="true" />

<!-- Month/year selector -->
<p-datePicker [(ngModel)]="date" view="month" dateFormat="mm/yy" />
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { DatePickerModule } from 'primeng/datepicker';

@Component({
  selector: 'app-example',
  standalone: true,
  imports: [DatePickerModule, FormsModule],
  templateUrl: './example.component.html'
})
export class ExampleComponent {
  date: Date | null = null;
  dateRange: Date[] | null = null;
  datetime: Date | null = null;
}

Design Tokens

Root

TokenValueDescription
transitionDuration{transition.duration}Panel open/close animation duration

Panel

TokenValueDescription
panel.background{content.background}Panel background
panel.borderColor{content.border.color}Panel border color
panel.color{content.color}Panel text color
panel.borderRadius{content.border.radius}Panel corner radius
panel.shadow{overlay.popover.shadow}Panel drop shadow
panel.padding{overlay.popover.padding}Panel internal padding
TokenValueDescription
header.background{content.background}Header section background
header.borderColor{content.border.color}Header bottom border
header.color{content.color}Header text color
header.padding0 0 0.5rem 0Header padding (bottom only)

Title

TokenValueDescription
title.gap0.5remGap between month and year selectors
title.fontWeight500Font weight for the month/year title

Input icon

TokenValueDescription
inputIcon.color{form.field.icon.color}Color of the calendar icon in the trigger input
TokenValueDescription
dropdown.width2.5remButton width (default)
dropdown.sm.width2remButton width in sm variant
dropdown.lg.width3remButton width in lg variant
dropdown.borderColor{form.field.border.color}Button border (default)
dropdown.hoverBorderColor{form.field.border.color}Button border on hover
dropdown.activeBorderColor{form.field.border.color}Button border when pressed
dropdown.borderRadius{form.field.border.radius}Button corner radius
dropdown.focusRing.width{focus.ring.width}Focus ring width
dropdown.focusRing.style{focus.ring.style}Focus ring style
dropdown.focusRing.color{focus.ring.color}Focus ring color
dropdown.focusRing.offset{focus.ring.offset}Focus ring offset
dropdown.focusRing.shadow{focus.ring.shadow}Focus ring shadow
TokenValueDescription
dropdown.background{surface.100}Button background
dropdown.hoverBackground{surface.200}Background on hover
dropdown.activeBackground{surface.300}Background when pressed
dropdown.color{surface.600}Icon color
dropdown.hoverColor{surface.700}Icon color on hover
dropdown.activeColor{surface.800}Icon color when pressed
TokenValueDescription
dropdown.background{surface.800}Button background
dropdown.hoverBackground{surface.700}Background on hover
dropdown.activeBackground{surface.600}Background when pressed
dropdown.color{surface.300}Icon color
dropdown.hoverColor{surface.200}Icon color on hover
dropdown.activeColor{surface.100}Icon color when pressed

Date cell

TokenValueDescription
date.hoverBackground{content.hover.background}Cell background on hover
date.selectedBackground{primary.color}Selected date background
date.rangeSelectedBackground{highlight.background}Background for in-range dates
date.color{content.color}Date number color
date.hoverColor{content.hover.color}Date color on hover
date.selectedColor{primary.contrast.color}Text on selected date
date.rangeSelectedColor{highlight.color}Text on in-range dates
date.width2remCell width
date.height2remCell height
date.borderRadius50%Circular date cells
date.padding0.25remCell inner padding
date.focusRing.*(inherits global focus ring)Focus ring tokens

Today indicator (color scheme)

Color schemeTokenValue
Lighttoday.background{surface.200}
Lighttoday.color{surface.900}
Darktoday.background{surface.700}
Darktoday.color{surface.0}

Week days & views

TokenValueDescription
weekDay.padding0.25remDay-name cell padding
weekDay.fontWeight500Day-name font weight
weekDay.color{content.color}Day-name text color
dayView.margin0.5rem 0 0 0Top margin for day grid
month.padding0.375remMonth cell padding
month.borderRadius{content.border.radius}Month cell radius
monthView.margin0.5rem 0 0 0Top margin for month grid
year.padding0.375remYear cell padding
year.borderRadius{content.border.radius}Year cell radius
yearView.margin0.5rem 0 0 0Top margin for year grid

Select month / year buttons

TokenValueDescription
selectMonth.hoverBackground{content.hover.background}Hover background for month select
selectMonth.color{content.color}Month select text color
selectMonth.hoverColor{content.hover.color}Month select text color on hover
selectMonth.padding0.25rem 0.5remMonth select padding
selectMonth.borderRadius{content.border.radius}Month select corner radius
selectYear.hoverBackground{content.hover.background}Hover background for year select
selectYear.color{content.color}Year select text color
selectYear.hoverColor{content.hover.color}Year select text color on hover
selectYear.padding0.25rem 0.5remYear select padding
selectYear.borderRadius{content.border.radius}Year select corner radius

Button bar & time picker

TokenValueDescription
buttonbar.padding0.5rem 0 0 0Today/Clear button bar padding
buttonbar.borderColor{content.border.color}Divider above button bar
timePicker.padding0.5rem 0 0 0Time picker section padding
timePicker.borderColor{content.border.color}Divider above time picker
timePicker.gap0.5remGap between time picker elements
timePicker.buttonGap0.25remGap between up/down time buttons
group.borderColor{content.border.color}Divider between multiple month groups
group.gap{overlay.popover.padding}Gap between multiple month panels

Theme Notes

Date cells are circular (borderRadius: 50%) and 2 rem × 2 rem. The selected date uses {primary.color} (emerald in Nettalco) as background with {primary.contrast.color} (white) text. Range dates use the softer {highlight.background} — the emerald-50 tint in light mode.
Today’s date gets a subtle surface tint ({surface.200} / {surface.700}) rather than the primary color, so it is visually distinguishable from a selected date without competing with the primary highlight.

Build docs developers (and LLMs) love