Code Monkey home page Code Monkey logo

react-spinners-kit's Introduction

React Spinners Kit

npm version Build Status downloads license

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.
Spinner Size: number Color: string FrontColor: string BackColor: string SizeUnit: string
BallSpinner 40 #00ff89 - - px
BarsSpinner 40 #00ff89 - - px
CircleSpinner 30 #fff - - px
CubeSpinner 25 - #00ff89 #686769 px
DominoSpinner 100 #686769 - - px
FillSpinner 20 #686769 - - px
FireworkSpinner 40 #fff - - px
FlagSpinner 40 #fff - - px
GridSpinner 40 #fff - - px
GuardSpinner 40 - #00ff89 #686769 px
HeartSpinner 40 #fff - - px
ImpulseSpinner 40 - #00ff89 #686769 px
PulseSpinner 40 #fff - - px
PushSpinner 30 #686769 - - px
SequenceSpinner 40 - #00ff89 #686769 px
SphereSpinner 30 #fff - - px
SpiralSpinner 40 #00ff89 #686769 px
StageSpinner 40 #fff - - px
SwapSpinner 40 #686769 - - px
WaveSpinner 30 #fff - - px
ClapSpinner 30 - #00ff89 #686769 px
RotateSpinner 45 #00ff89 - - px
SwishSpinner 40 - #4b4c56 #fff px
GooSpinner 55 #fff - - px
CombSpinner 100 #fff - - px
PongSpinner 60 #4b4c56 - - px
RainbowSpinner 50 #fff - - px
RingSpinner 30 #00ff89 - - px
HoopSpinner 45 #4b4c56 - - px
FlapperSpinner 30 #00ff89 - - px
MagicSpinner 70 #fff - - px
JellyfishSpinner 60 #4b4c56 - - px
TraceSpinner 70 - #00ff89 #4b4c56 px
ClassicSpinner 30 #fff - - px
MetroSpinner 40 #fff - - px
WhisperSpinner 50 #fff #4b4c56 #00ff89 px

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.