Clock
display
Clock component
Terminal
$termuijs render clock
Installation
$ bunx termuijs add clock
Copies the source into src/components/clock/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Clock } from '@termuijs/widgets'ts
new Clock(style: Partial<Style> = {}, opts: ClockOptions = {})API Reference
Clock
| Prop | Type | Required | Description |
|---|---|---|---|
showSeconds | boolean | optional | — |
use24Hour | boolean | optional | — |
digitColor | Color | optional | — |