Calendar
Date grid (react-day-picker).
Import
tsx
import { Calendar } from "@cronus-ui/ui";
bash
npx cronus-ui add calendar
Examples
.cronus
The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.
default.cronus
app "audit-fixtures" {
port 5176
}
style {
preset aurora
theme dark
}
component CalendarDefault layout:inline style:calendar {
defaultMonth:"2026-06-01"
selected:"2026-06-01"
label "June 2026"
}
page "/audit/calendar/default" type:custom {
use CalendarDefault
}
API Reference
Generated from the component's exported types.
CalendarProps
Extends React.ComponentProps<typeof DayPicker>
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |