Spinners
$
Spinner
FREEAnimated loading indicators with built-in styles, live text updates, elapsed time display, and terminal-native success/failure states.
animatedinteractiveloading
# Preview
BOOTING PREVIEW
# Usage
import { Spinner } from '@taracod/termui';
const spinner = new Spinner({ text: 'Loading...', style: 'dots' });
spinner.start();
spinner.update('Almost there...');
spinner.stop('Done!');
spinner.fail('Error!');
spinner.warn('Warning!');
spinner.info('Note:');# API
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | required | Message shown next to the animated frame |
| style | SpinnerStyle | dots | dots, braille, arc, bar, arrows, line, earth, moon |
| elapsed | boolean | true | Show elapsed time while the spinner runs |
| color | AnsiColor | brand | Frame color for active spinner state |