react-spinners-css
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-spinners-css

npm module GitHub stars GitHub license Twitter Follow

Amazing collection of react spinners components of css spinners for ajax or loading animation based on loading.io.

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

Usage Examples

Using npm:

import { Circle, Facebook } from "react-spinners-css";
...
render() {
   return(
     <div>
       <Circle /> //default color is #7f58af
       <Circle color="red" />
       <Facebook /> //default color is #7f58af
       <Facebook color="red" />
     </div>
   )
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Steps to contribute

  1. Fork the project and clone.
  2. Create spinner folder in this folder, name the folder with upper case, and create index file and css file. See example of naming in this folder folder.
  3. The spinner need to be exported with index file inside the spinner folder, so create index.js file to export your spinner.
  4. Add the spinner in index.js file inside components folder.
  5. Run npm run build to generate the build folder folder.
  6. Share with the community by submitting a PR.

License

MIT

Package Sidebar

Install

npm i react-spinners-css@1.0.1

Version

1.0.1

License

MIT

Unpacked Size

34.2 kB

Total Files

28

Last publish

Collaborators

  • joshk2