ink-spinner
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/ink-spinner package

5.0.0 • Public • Published

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.

Package Sidebar

Install

npm i ink-spinner

Weekly Downloads

264,905

Version

5.0.0

License

MIT

Unpacked Size

5.47 kB

Total Files

6

Last publish

Collaborators

  • vdemedes