Overview
Animated spinner for async work.Import
Usage
Live Preview
Run Locally
npm run tsx:core-gallery
Props
- text?: string — Base text.
- intervalMs?: number — Frame interval (default 80ms).
- bars?: string[] — Custom bar frames.
- barCount?: number — Use only first N frames.
Methods
- start(text?, intervalMs?), stop(), pause(), resume(), reset().
- setText(text), setBars(frames), setBarCount(n), setInterval(ms), setCustomPattern(frames).
- getCurrentBarIndex(), getCurrentBar(), isRunning().
Installation
Import
Quick Start
Production Examples
Best Practices
- Usa spinner per operazioni brevi; combina con Text/StatusBar per contesto.
