React Spinners CSS Loaders (Angular)
Amazing collection of pure CSS react spinners components of css spinners for ajax or loading animation based on loading.io.
Install components and live demo
🚀 List of components
<Circle />
<Default />
<DualRing />
<Ellipsis />
<Facebook />
<Grid />
<Heart />
<Hourglass />
<Ring />
<Ripple />
<Roller />
<Spinner />
Props
Prop | Type | Default |
---|
color | string | #7f58af |
📦 Installation
Using npm to install react-spinners-css:
$ npm i --save react-spinners-css
Play and install react spinners with Bit
Install specific react spinner component with bit, npm or yarn without having to install the whole project.
Using bit to play with live demo, and try the spinners before install.
set npm regisetry config(one time action):
npm config set '@bit:registry' https://node.bit.dev
and use your favorite package manager:
npm i @bit/joshk.react-spinners-css.facebook
yarn add @bit/joshk.react-spinners-css.facebook
bit import joshk.react-spinners-css/facebook
💻 Usage Examples
you can use a random color from jotils
import { Circle, Heart } from 'react-spinners-css';
import Facebook from '@bit/joshk.react-spinners-css.facebook';
import { getRandomColor } from '@bit/joshk.jotils.get-random-color'
...
render() {
return(
<div>
<Circle /> //default color is #7f58af
<Circle color="red" />
<Heart color={getRandomColor()} />
<Facebook /> //default color is #7f58af
<Facebook color="red" />
</div>
)
}
👾 Development
You can see the components locally by cloning this repo and doing the following steps:
- Install dependencies from
package.json
, run: npm install
. - Run the app in the development mode, run:
npm run start
.
⌨️ Contributing
- Pull requests and ⭐ stars are always welcome.
- For bugs and feature requests, please create an issue.
📄 License
MIT