Calendar

ButtonCard

A month grid for picking a single date or a range.

October 2026
SuMoTuWeThFrSa

Installation

pnpm add krz-ui

Usage

import { Calendar } from "krz-ui";
<Calendar value={date} onValueChange={setDate} />

<Calendar mode="range" value={range} onValueChange={setRange} />

API Reference

PropTypeDescription
mode"single" | "range"Pick one date or a from–to range.
value / defaultValueDate | DateRange | nullControlled or initial selection.
onValueChange(value) => voidCalled with the new date or range.
min / maxDateEarliest and latest selectable days.
isDateDisabled(date: Date) => booleanDisable specific days, e.g. weekends.
weekStartsOn0 | 1Sunday or Monday. Defaults to 0.
localestringLocale for month and weekday names.
className / style / ref—All go to the outer element. See Customization.
classNames{ header?, nav?, title?, grid?, weekday?, day? }Extra classes for inner parts.