Socket
Socket
Sign inDemoInstall

react-spinners-kit

Package Overview
Dependencies
63
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-spinners-kit

A collection of loading spinners


Version published
Weekly downloads
6.7K
increased by19.77%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-spinners-kit

A collection of loading spinners built with styled-components.

Imgur

Live Demo

Installation

Install react-spinners-kit using npm.

npm install --save react-spinners-kit

or if you prefer yarn

yarn add react-spinners-kit

Usage

import React from "react";
import ReactDOM from "react-dom";
import { PushSpinner } from "react-spinners-kit";

class App extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            loading: true,
        };
    }

    render() {
        const { loading } = this.state;
        return (
            <PushSpinner
                size={30}
                color="#686769"
                loading={loading}
            />
        );
    }
}

ReactDOM.render(<App />, document.getElementById("root"));

PropTypes and Default Props

  • Each spinner accepts a loading prop as a boolean.
  • The loading prop defaults to true.
  • The loader will not render anything if loading is false.
SpinnerSizeColorFrontColorBackColor
BallSpinner40#00ff89--
BarsSpinner40#00ff89--
CircleSpinner30#fff--
CubeSpinner25-#00ff89#686769
DominoSpinner100#686769--
FillSpinner20#686769--
FireworkSpinner40#fff--
FlagSpinner40#fff--
GridSpinner40#fff--
GuardSpinner40-#00ff89#686769
HeartSpinner40#fff--
ImpulseSpinner40-#00ff89#686769
PulseSpinner40#fff--
PushSpinner30#686769--
SequenceSpinner40-#00ff89#686769
SphereSpinner30#fff--
SpiralSpinner40#00ff89#686769
StageSpinner40#fff--
SwapSpinner40#686769--
WaveSpinner30#fff--
ClapSpinner30-#00ff89#686769
RotateSpinner45#00ff89--
SwishSpinner40-#4b4c56#fff
GooSpinner55#fff--
CombSpinner100#fff--
PongSpinner60#4b4c56--
RainbowSpinner50#fff--
RingSpinner30#00ff89--
HoopSpinner45#4b4c56--
FlapperSpinner30#00ff89--
MagicSpinner70#fff--
JellyfishSpinner60#4b4c56--
TraceSpinner70-#00ff89#4b4c56

Development

You can also test the components locally by cloning this repo and doing the following steps:

Install dependencies from package.json:

npm install

Runs the app in the development mode.
Open http://localhost:1234 to view it in the browser.

npm start

Run linter

npm run lint

Contributing

  • Pull requests and ⭐ stars are always welcome
  • For bugs and feature requests, please create an issue
  • Lint and test your code

License

MIT

Keywords

FAQs

Last updated on 22 Jan 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc