Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/vadimdemedes/ink-spinner

Spinner component for Ink
https://github.com/vadimdemedes/ink-spinner

Last synced: 20 days ago
JSON representation

Spinner component for Ink

Lists

README

        

# ink-spinner ![test](https://github.com/vadimdemedes/ink-spinner/workflows/test/badge.svg)

> Spinner component for [Ink](https://github.com/vadimdemedes/ink). Uses [cli-spinners](https://github.com/sindresorhus/cli-spinners) for the collection of spinners.

Looking for a version compatible with Ink 2.x? Check out [this release](https://github.com/vadimdemedes/ink-spinner/tree/v3.1.0).

## Install

```
$ npm install ink-spinner
```

## Usage

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

render(




{' Loading'}

);
```

## Props

### type

Type: `string`

Defaults: `dots`

Type of a spinner. See [cli-spinners](https://github.com/sindresorhus/cli-spinners) for available spinners.