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

ink-spinner test

Spinner component for Ink. Uses cli-spinners for the collection of spinners.

Looking for a version compatible with Ink 2.x? Check out this release.

Install

$ npm install ink-spinner

Usage

import React from 'react';
import { render, Text } from 'ink';
import Spinner from 'ink-spinner';

render(
	<Text>
		<Text color="green">
			<Spinner type="dots" />
		</Text>
		{' Loading'}
	</Text>
);

Props

type

Type: string
Defaults: dots

Type of a spinner. See cli-spinners for available spinners.

Current Tags

  • 3.0.1                                ...           latest (6 years ago)

4 Versions

  • 4.0.0-0                                ...           5 years ago
  • 4.0.3                                ...           4 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (17)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org