DatePicker
uitemplate
calendar date selector widget
Terminal
$termuijs render date-picker
Installation
$ bunx termuijs add date-picker
Copies the source into src/components/date-picker/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { DatePicker } from '@termuijs/ui'ts
new DatePicker(options: DatePickerOptions = {})API Reference
DatePicker
| Prop | Type | Required | Description |
|---|---|---|---|
value | Date | optional | — |
onChange | (date: Date) => void | optional | — |