Skip to content
Spinner component for Ink
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
media update demo gif Aug 9, 2017
src Migrate to Ink 2 (#2) Mar 4, 2019
.editorconfig init Jul 15, 2017
.gitattributes
.gitignore
.npmrc
.travis.yml
license
package.json Test with ink-testing-library Mar 6, 2019
readme.md Update readme example code to match gif demo; remove Spinner green pr… Mar 13, 2019
test.js Test with ink-testing-library Mar 6, 2019

readme.md

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.