Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (26 sloc) 867 Bytes

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

You can’t perform that action at this time.