1.0.7 • Published 5 years ago
react-spinner-simple v1.0.7
Spinner comes as a default export:
import Spinner from 'react-spinner-simple'
THE STYLESHEET IS IN SASS->.SCSS FILE
Install:
$ npm i --save react-spinner-simple$ yarn add i --save react-spinner-simpleProps description for the component:
| Prop Name | Prop Type | Prop Description | Default |
|---|---|---|---|
| w | String | width | - |
| h | String | height | - |
| divWrapper | String | DIV which wraps the SVG | 'spinnerWrapper' |
| svgClass | String | class name for SVG | - |
| svgPath | String | class name for Path | - |
| fill | String | fill | 'none' |
| stroke | String | stroke | '#231f20' |
| strokeWidth | String | strokeWidth | '8' |
Usage example in your component:
<Spinner
svgClass="spinner_svg"
svgPath="spinner_path"
strokeWidth="8"
w="auto"
h="100vh"
stroke="#FFD662"
/>