Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/gauge
Usage
import { Gauge } from "@/components/ui/gauge";<Gauge value={72} max={100} label="CPU Usage" size="md" />API Reference
Gauge
| Prop | Type | Default |
|---|---|---|
value | number | required |
min | number | 0 |
max | number | 100 |
label | string | - |
color | string | - |
size | "sm" | "md" | "lg" | "md" |
Notes
Accessibility
termcn exposes the following behavior through Ink's terminal accessibility APIs. This is not a browser ARIA or general WCAG-conformance claim.
- Screen reader: Ink labels and semantic state expose the component without relying on visual styling alone.