StatusIndicator
data
StatusIndicator: simple up/down indicator with label
Terminal
$termuijs render status-indicator
Installation
$ bunx termuijs add status-indicator
Copies the source into src/components/status-indicator/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { StatusIndicator } from '@termuijs/widgets'ts
new StatusIndicator(label: string, isUp: boolean, style: Partial<Style> = {}, opts: StatusIndicatorOptions = {})API Reference
StatusIndicator
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | required | — |
isUp | boolean | required | — |
upColor | Color | optional | Color when up/active |
downColor | Color | optional | Color when down/inactive |