Wondering what’s next for npm?Check out our public roadmap! »

    ink-spinner
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.1 • 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.

    Install

    npm i ink-spinner

    DownloadsWeekly Downloads

    132,269

    Version

    4.0.1

    License

    MIT

    Unpacked Size

    4.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar