Socket
Socket
Sign inDemoInstall

better-react-spinkit

Package Overview
Dependencies
13
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    better-react-spinkit

A collection of loading indicators animated with CSS for React


Version published
Weekly downloads
2.9K
decreased by-18.87%
Maintainers
1
Install size
488 kB
Created
Weekly downloads
 

Readme

Source

better-react-spinkit

npm npm travis standard

A collection of loading indicators animated with CSS, powered by React.

Donate BTC: 1H7dDZeisBvvnJZtXJ7f5TCqNv2W3MnRN2

Donate ETH: 0x660ABF8bc22FDCebe26bb570f02D47C2b9828432

Donate LTC: LQJsuBUg1kPrxJT7KWjcAFVQaDsY7h1f6B

Install

npm i better-react-spinkit

Usage

import {
  ChasingDots,
  Circle,
  CubeGrid,
  DoubleBounce,
  FadingCircle,
  FoldingCube,
  Pulse,
  RotatingPlane,
  ThreeBounce,
  WanderingCubes,
  Wave
} from 'better-react-spinkit'

// somewhere in a render function ...
<Circle />

Context Configuration

Optionally, you can configure size and color props in context to avoid managing configuration on each instance.

import { default as React, Component, PropTypes } from 'react'
import { ThreeBounce } from 'better-react-spinkit'

class Application extends Component {
  static childContextTypes = {
    betterReactSpinkit: PropTypes.object
  };
  getChildContext () {
    return {
      betterReactSpinkit: {
        color: 'green',
        size: 25
      }
    }
  }
  render () {
    // Inline props override the contextual settings.
    return (
      <ThreeBounce size={15} color='blue' />
    )
  }
}

Contributing

Contributions welcome! Please read the contributing guidelines first.

License

ISC

Documentation

👀 docs

Keywords

FAQs

Last updated on 15 Dec 2017

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