├── .babelrc
├── .gitignore
├── .npmignore
├── README.md
├── Spinner.js
├── __snapshots__
└── test.js.snap
├── docs
├── build.js
└── index.html
├── package.json
└── test.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | "env",
4 | "stage-0",
5 | "react"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | dist
2 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | __snapshots__
2 | docs
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Respin
3 |
4 | React SVG loading spinner based on jxnblk.com/loading
5 |
6 | ```sh
7 | npm i respin
8 | ```
9 |
10 | ```js
11 | const React = require('react')
12 | const Spinner = require('respin')
13 |
14 | const MyComponent = props => (
15 |
16 | Loading...
17 |
18 | )
19 | ```
20 |
21 | ## Props
22 |
23 | - `size = 16` - (number) - width and height in pixels
24 | - `duration = 1000` - (number) - duration of animation in milliseconds
25 | - `spokes = 8` - (number) - number of spokes in spinner
26 |
27 | Respin passes all other props to the root `