Socket
Socket
Sign inDemoInstall

react-spinners-css

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-spinners-css

Amazing css spinner for ajax or loading animation from loading.io. What is this project? I see that [loadingio pure css](https://loading.io/css/) is only [built](https://github.com/loadingio/css-spinner) for normal HTML website, and I want to use it f


Version published
Weekly downloads
526
decreased by-12.91%
Maintainers
1
Weekly downloads
 
Created
Source

react-spinners-css npm module bit components

Amazing css spinner for ajax or loading animation from loading.io.
What is this project?
I see that loadingio pure css is only built for normal HTML website, and I want to use it for some React project, so I decide to take this project and convert it to React components library and add some features like a color option for each spinner.

Install loading io spinner for React with npm

Run the following command:

npm install react-spinners-css

Play and install loading io spinner for React with Bit

Using bit to play with live demo, and try loading io spinner before install.

Install specific loadingio spinner component with bit using npm or yarn without having to install the whole project

set npm regisetry config(one time action):

npm config set '@bit:registry' https://node.bit.dev

and use your favorite package manager:

bit import joshk.react-spinners-css/ripple 
npm i @bit/joshk.react-spinners-css.ripple
yarn add @bit/joshk.react-spinners-css.ripple

API

Components

  • <Circle/>
  • <Default/>
  • <DualRing/>
  • <Ellipsis/>
  • <Facebook/>
  • <Grid/>
  • <Heart/>
  • <Hourglass/>
  • <Ring/>
  • <Ripple/>
  • <Roller/>
  • <Spinner/>
Props
PropTypeDefault
colorstring#fff

Usage Examples

Using npm, bit:

import { Roller } from 'react-spinners-css';
import Ripple from '@bit/joshk.react-spinners-css.ripple';
...
render() {
   return(
     <div>
       <Roller /> //default color is white
       <Roller color="black" />
       <Roller color="#000" />
       <Ripple /> //default color is white
       <Ripple color="black" />
       <Ripple color="#000" />
     </div>
   )
}

License

MIT

Keywords

FAQs

Package last updated on 29 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc