Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-spinners-kit

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-kit

A collection of loading spinners

  • 1.5.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.2K
increased by14.18%
Maintainers
1
Weekly downloads
 
Created
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.
SpinnerSizeColorFrontColorBackColorLeftColorTopColorFirstColorSecondColor
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--#686769-#00ff89--
PulseSpinner40#fff------
PushSpinner30#686769------
SequenceSpinner40-#686769-#00ff89---
SphereSpinner30#fff------
SpiralSpinner40#00ff89#686769----
StageSpinner40#fff------
SwapSpinner40#686769------
WaveSpinner30#fff------
ClapSpinner30--#686769-#00ff89--
RotateSpinner45#00ff89------
SwishSpinner40-----#4b4c56#fff
GooSpinner55#fff------
CombSpinner100#fff------
PongSpinner60#4b4c56------
RainbowSpinner50#fff------
RingSpinner30#00ff89------
HoopSpinner45#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

Package last updated on 31 Dec 2018

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