Spinner component for Ink. Uses cli-spinners for the collection of spinners.
$ npm install ink-spinner
import React, {Fragment} from 'react';
import {render, Color} from 'ink';
import Spinner from 'ink-spinner';
render(
<Fragment>
<Color green><Spinner type="dots"/></Color>
{' Loading'}
</Fragment>
);
Type: string
Defaults: dots
Type of a spinner. See cli-spinners for available spinners.
MIT © Vadim Demedes