react-spin

0.6.2 • Public • Published

react-spin

Build Status npm

Tiny React wrapper around spin.js.

Usage

import React from 'react';
import Spinner from 'react-spin';
 
const MyComponent = React.createClass({
  render: function() {
    var spinCfg = {
      width: 12,
      radius: 35,
      // ...
    };
    return <Spinner config={spinCfg} />
  }
});

Properties

config Spin.js configuration object. See here for options.
stopped Boolean indicating whether the spinner is stopped or not. Can be toggled on and off.

/react-spin/

    Package Sidebar

    Install

    npm i react-spin

    Weekly Downloads

    43

    Version

    0.6.2

    License

    MIT

    Last publish

    Collaborators

    • tboyt