Skip to content

jnuine/react-spinner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-spinner

Zero configuration loading spinner.

Live demo from the example folder.

install

Bower:

bower install react-spinner

Npm:

npm install react-spinner

Plain old script tag:

<script src="path/to/react-spinner/index.js"></script>

(Compatible with CommonJS, e.g. Browserify.)

The CSS file:

<link rel="stylesheet" type="text/css" href="path/to/react-spinner.css">

The spinner

API

Adds the spinner, which centers itself based on its container's dimensions. If those are not predefined, simply manually center it by adding more style rules to the exposed .react-spinner class here.

You can also override the .react-spinner's width and height if you want a bigger or smaller spinner. Everything resizes correctly.

License

MIT.

About

Zero configuration loading spinner.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • CSS 0.1%