/ink-spinner

Spinner component for Ink

Primary LanguageJavaScriptMIT LicenseMIT

ink-spinner Build Status

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