Utility
Terminal
█
spinner-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/spinner
Usage
import { Spinner } from "@/components/ui/spinner";<Spinner type="dots" label="Loading components" />Examples
Spinner Styles
Multiple built-in animation styles.
Terminal
█
spinner-styles █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█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[] | - |