2.2.0 • Published 3 years ago
@propellerads/spinner v2.2.0
Spinner
Installation
yarn add @propellerads/spinnerornpm 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"
/>