Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/sparkline
Usage
import { Sparkline } from "@/components/ui/sparkline";<Sparkline data={[4, 8, 15, 16, 23, 42, 38, 26]} width={20} label="Requests" />API Reference
Sparkline
| Prop | Type | Default |
|---|---|---|
data | number[] | required |
width | number | 20 |
color | string | - |
label | string | - |
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: Visual output exposes its meaningful value through a textual alternative or bounded accessible summary.