Utility
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/digits
Usage
import { Digits } from "@/components/ui/digits";<Digits value="12:30" />API Reference
Digits
| Prop | Type | Default |
|---|---|---|
value | string | number | required |
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.