ink-spinner
Spinner component for Ink
Last updated 9 days ago by vdemedes .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ink-spinner 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.1.0                                ...           latest (9 days ago)
  • 4.0.0-0                                ...           next (9 days ago)

6 Versions

  • 4.0.0-0                                ...           9 days ago
  • 3.1.0                                ...           9 days ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 139
This Week 532
This Month 279
Last Day 140
Last Week 947
Last Month 3,237
Dependencies (2)
Dev Dependencies (17)
Dependents (153)

Copyright 2014 - 2016 © taobao.org |