Utility
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/spinner
Usage
import { Spinner } from "@/components/ui/spinner";<Spinner type="dots" label="Loading components" />Examples
Spinner Styles
Multiple built-in animation styles.
Terminal
API Reference
Spinner
| Prop | Type | Default |
|---|---|---|
type | SpinnerName from cli-spinners | "dots" |
label | string | - |
color | string | - |
fps | number — used only with custom frames | 12 |
frames | 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: Ink labels and semantic state expose the component without relying on visual styling alone.