React implementation of the SVG Loaders library by Sam Herbert
npm install svg-loaders-react
This is a zero-dependency React adaptation of Sam Herberts SVG Loaders library.
bash
npm install svg-loaders-react
`Import the SVGLoaders components
$3
You can import all the loaders at once:
`js
import * as SVGLoaders from 'svg-loaders-react';
`
and use them in a namespaced manner:
`js
`$3
You can also import a single loader:
`js
import { Bars } from 'svg-loaders-react'
`
and use it without any fancy namespacing:
`js
`Components
````````````````````````Options
Each of these components should be able to accept any SVG tag presentation attributes as props.
Common Usage
`Javascript
// render the Puff loader with a stroke opacity of .125
// render the Puff loader with a stroke of mint green
// render the Puff loader with a stroke of mint green and a stroke opactiy of .125
``