Spinner
NPM |
Github
Installation
-
yarn add @propellerads/spinner
or npm 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"
/>