Skip to content

benfreu/react-spin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tiny React wrapper around spin.js.

Usage

/** @jsx React.DOM */
var React = require('react');
var Spinner = require('react-spin');

var 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.

About

React component wrapper for spin.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%