@propellerads/spinner
v2.2.0
Published
![size](https://img.shields.io/bundlephobia/min/@propellerads/spinner.svg) ![](https://img.shields.io/npm/v/@propellerads/spinner.svg?style=flat-square)
Downloads
1,316
Keywords
Readme
Spinner
Installation
yarn add @propellerads/spinner
ornpm install @propellerads/spinner -S
How to use
import Spinner from '@propellerads/spinner';
- Props:
delay
The delay (in ms) before the spinner will appear
center
Attempt to center the spinner in the parent element
size
This is the width and height of the spinner, which can be specified before output (available sizes 'xs', 'sm', 'md', 'lg', 'xl'
)
color
You can set a color in the colors (available colors 'black', 'white', 'gray', 'red', 'blue', 'gray_dark'
)
<Spinner
delay={10}
center={true}
size="md"
color="red"
/>