@pieh/ink-spinner
v3.0.0-peer-deps.2
Published
Spinner component for Ink
Downloads
2
Maintainers
Readme
ink-spinner
Spinner component for Ink. Uses cli-spinners for the collection of spinners.
Install
$ npm install ink-spinner
Usage
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>
);
Props
type
Type: string
Defaults: dots
Type of a spinner. See cli-spinners for available spinners.
License
MIT © Vadim Demedes