Calendar
data
Calendar component
Terminal
$termuijs render calendar
Installation
$ bunx termuijs add calendar
Copies the source into src/components/calendar/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Calendar } from '@termuijs/widgets'ts
new Calendar(style: Partial<Style> = {}, opts: CalendarOptions = {})API Reference
Calendar
| Prop | Type | Required | Description |
|---|---|---|---|
date | Date | optional | — |
selectedColor | Color | optional | — |
todayColor | Color | optional | — |
onSelect | (date: Date) => void | optional | — |