Respin
React SVG loading spinner based on jxnblk.com/loading
npm i respin
const React = const Spinner = const MyComponent = <div> <Spinner /> Loading... </div>
Props
size = 16
- (number) - width and height in pixelsduration = 1000
- (number) - duration of animation in millisecondsspokes = 8
- (number) - number of spokes in spinner
Respin passes all other props to the root <svg>
element.
MIT License