Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
/ react-spin Public archive
forked from thomasboyt/react-spin

React component wrapper for spin.js

Notifications You must be signed in to change notification settings

FlockFreight/react-spin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-spin

IMPORTANT

This repository was forked as part of AX-1450 to upgrade to react 16. It was forked due to peerDependency react version being too rigid

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.

About

React component wrapper for spin.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%