Skip to content

Stat

widgetsdata

Stat component

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

PropTypeRequiredDescription
labelstringrequired
valuestringrequired
deltanumberoptional
valueColorColoroptional
#data#stat