Components
Gauge
Semicircular or linear metric gauge with color thresholds.
Display a single metric value with automatic color changes based on configurable thresholds.
Installation
Usage
Variants
bar— horizontal progress bar (default)arc— ASCII art semicircular arcring— full ASCII ring/circle
Default Color Thresholds
| Range | Color |
|---|---|
| 0–60% | success (green) |
| 60–80% | warning (yellow) |
| 80–100% | error (red) |
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | — | Current value (required) |
min | number | 0 | Minimum value |
max | number | 100 | Maximum value |
label | string | — | Display label |
unit | string | '%' | Value unit suffix |
variant | 'arc' | 'bar' | 'ring' | 'bar' | Visual style |
colorStops | [number, string][] | — | Custom color thresholds |
width | number | 20 | Width in columns |
showValue | boolean | true | Show numeric value |
theme | InkUITheme | darkTheme | Color theme |