Skip to content

SPINNER_FRAMES

widgetsfeedback

Built-in spinner frame sets

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

PropTypeRequiredDescription
spinnerstring | { frames: string[]; interval: number }optionalSpinner preset name or custom frames
presetstringoptionalSpinner preset name (preferred option)
variantstringoptionalAnimation variant (dots, line, braille, etc.)
labelstringoptionalText label displayed after the spinner
colorColoroptionalColor for the spinner frames
activebooleanoptionalWhether the spinner is active/animating (default: true)
doneTextstringoptionalText to display when active is false (e.g., '✓ Done')
intervalnumberoptionalCustom frame interval in milliseconds
#feedback#s-p-i-n-n-e-r_-f-r-a-m-e-s