"use client";
import { Calendar } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
locale | string | LocaleProvider locale | BCP 47 locale for month/weekday names (default: LocaleProvider locale). |
value | string | — | Current value (controlled); null where it means "nothing selected". |
autoFocus | boolean | — | Focus the active day when the calendar mounts (used by DatePicker). |
defaultValue | string | — | Initial value when uncontrolled. |
disabledDates | readonly string[] | — | — |
max | string | — | — |
min | string | — | — |
month | string | — | — |
nextMonthLabel | string | — | — |
onAction | (value: string) => void | — | Called on every day chosen (also the selected one), e.g. to close a popup. |
localedefault LocaleProvider localestring
BCP 47 locale for month/weekday names (default: LocaleProvider locale).
valuestring
Current value (controlled); null where it means "nothing selected".
autoFocusboolean
Focus the active day when the calendar mounts (used by DatePicker).
defaultValuestring
Initial value when uncontrolled.
disabledDatesreadonly string[]
maxstring
minstring
monthstring
nextMonthLabelstring
onAction(value: string) => void
Called on every day chosen (also the selected one), e.g. to close a popup.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<Calendar value="2026-05-28" />
<Calendar locale="pl-PL" value="2026-05-28" /> {/* week starts on Monday */}