SPINNER_FRAMES
feedback
Built-in spinner frame sets
Terminal
$termuijs render s-p-i-n-n-e-r_-f-r-a-m-e-s
Installation
$ bunx termuijs add s-p-i-n-n-e-r_-f-r-a-m-e-s
Copies the source into src/components/s-p-i-n-n-e-r_-f-r-a-m-e-s/ and installs @termuijs/core, @termuijs/motion, @termuijs/widgets.
Usage
ts
import { SPINNER_FRAMES } from '@termuijs/widgets'ts
new SPINNER_FRAMES(style: Partial<Style> = {}, options: SpinnerOptions = {})API Reference
SPINNER_FRAMES
| Prop | Type | Required | Description |
|---|---|---|---|
spinner | string | { frames: string[]; interval: number } | optional | Spinner preset name or custom frames |
preset | string | optional | Spinner preset name (preferred option) |
variant | string | optional | Animation variant (dots, line, braille, etc.) |
label | string | optional | Text label displayed after the spinner |
color | Color | optional | Color for the spinner frames |
active | boolean | optional | Whether the spinner is active/animating (default: true) |
doneText | string | optional | Text to display when active is false (e.g., '✓ Done') |
interval | number | optional | Custom frame interval in milliseconds |