react-spin

A React component wrapper for spin.js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-spin
0.6.28 years ago10 years agoMinified + gzip package size for react-spin in KB

Readme

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

<td><code>config</code></td>
<td>Spin.js configuration object. See <a href="http://fgnass.github.io/spin.js/">here</a> for options.</td>
<td><code>stopped</code></td>
<td>Boolean indicating whether the spinner is stopped or not. Can be toggled on and off.