1.0.1 • Published 7 years ago
react-loader-icon v1.0.1
react-loader-icon
React component that display loader icon
Installation
To install react-loader-icon, use npm:
npm i react-loader-icon -SUsage
import React from "react";
import LoaderIcon from "react-loader-icon";
class App extends React.Component {
render() {
return (
<div>
<LoaderIcon />
<LoaderIcon size={100} />
<LoaderIcon color={"red"} />
<LoaderIcon className={"loader"} />
<LoaderIcon style={{ marginTop: 100 }} />
<LoaderIcon type={"bars"} color={"red"} size={100} />
<LoaderIcon type={"balls"} />
<LoaderIcon type={"bars"} />
<LoaderIcon type={"bubbles"} />
<LoaderIcon type={"cubes"} />
<LoaderIcon type={"cylon"} />
<LoaderIcon type={"spin"} />
<LoaderIcon type={"spinningBubbles"} />
<LoaderIcon type={"spokes"} />
</div>
);
}
}
export default App;Options
size- define the size of the icon. (default: 64) OPTIONALcolor- define the color of the icon. (default: black) OPTIONALtype- define the type of loader icon needed. (default: spinningBubbles) OPTIONALclassName- define the className of loader icon. (default: spinningBubbles) OPTIONALstyle- define the style of loader icon. (default: spinningBubbles) OPTIONAL
Loading Types
- balls
- bars
- bubbles
- cubes
- cylon
- spin
- spinningBubbles
- spokes
Demo
![]()
Tests
npm install
npm test