Stat
data
Stat component
Terminal
$termuijs render stat
Installation
$ bunx termuijs add stat
Copies the source into src/components/stat/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Stat } from '@termuijs/widgets'ts
new Stat(label: string, value: string, style: Partial<Style> = {}, opts: StatOptions = {})API Reference
Stat
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | required | — |
value | string | required | — |
delta | number | optional | — |
valueColor | Color | optional | — |