react-slowpoke
v1.2.3
Published
A minimal React spinner to show while loading resources
Downloads
6
Maintainers
Readme
Slowpoke
Minimal spinner react component
See a live demo and it's code here
How to use?
Install the package trough npm:
npm install --save react-slowpoke
Then you embed it into your react component like this:
<SlowPoke type="round" show={true} />
Setting the show
prop according to your needs.
At the moment only the round
type is available, but there are some options you can pass as props to customize:
{
speed: 4,
size: 30,
weight: 19,
foreground: 'rgba(0,0,0,0.7)',
background: 'rgba(0,0,0,0.2)'
}