Spinner *

Spinner #

Preview #

Check the demo folder here

Usage #

Install it via

npm i @yeci/spinner

Use it in your project

  1. import
import Spinner from '@yeci/spinner';
  1. Use
<Spinner />

Customize #

<Spinner spinnerProps={{ height: 100, width: 100, borderThickness: '5px', borderTopThickness: '2px', borderColor: '#FF5722', animationDuration: 2 }} />

height - The spinner’s height

width - The spinner’s width

borderThickness - The thickness of the spinner’s border

borderTopThickness - The thickness of the spinner’s borderTop

borderColor - The color of the spinner’s border

animationDuration - Animation Duration

Source Code #

GitHub

Changelog #

0.0.4

Fixed

  • The loading state has been eliminated. As a UI library, its state ought to be externally controlled rather than self-controlled.

0.0.3

Double check version

0.0.2

Check version

0.0.1

This version doesn’t work.