Socket
Socket
Sign inDemoInstall

react-spinner

Package Overview
Dependencies
3
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-spinner

Zero configuration loading spinner.


Version published
Weekly downloads
16K
decreased by-5.1%
Maintainers
1
Install size
15.6 kB
Created
Weekly downloads
 

Readme

Source

React-spinner

Zero configuration loading spinner.

Live demo from the example folder. (To build it locally, clone this repo, npm install && npm start then open http://localhost:3000/example/)

install

Bower:

bower install react-spinner

Npm:

npm install react-spinner

Plain old script tag:

<script src="path/to/react-spinner/build/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

<Spinner />

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.

Keywords

FAQs

Last updated on 20 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc