SVG loading icons component for React.
JavaScript HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
html
src
.gitignore
README.md
copyfiles.js
package-lock.json
package.json
webpack.common.js
webpack.dev.js
webpack.prod.js

README.md

React Preloader Icon

SVG loading icons component for React. - Demo

Thank to SVG-Loaders

Installation

npm

npm install --save react-preloader-icon

Usage

import PreloaderIcon from 'react-preloader-icon';
import Oval from 'react-preloader-icon/loaders/Oval';

<PreloaderIcon
    loader={Oval}
    size={32}
    strokeWidth={8} // min: 1, max: 50
    strokeColor="#F0AD4E"
    duration={800}
/> 

Icon types

Supported browsers

  • Latest Firefox
  • Latest Chrome
  • Latest Safari
  • IE9 through latest

License

MIT