# react-spinner

> Zero configuration loading spinner.

Latest version **0.2.7** (published 2017-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-spinner
pnpm add react-spinner
yarn add react-spinner
bun add react-spinner
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.7 |
| Published | 2017-04-20 |
| First published | 2014-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/react-spinner) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 186 |
| Author | chenglou |
| Maintainers | chenglou |
| Keywords | facebook, react, spin, spinner, loading, react-component |

## Links

- npm: https://www.npmjs.com/package/react-spinner
- Repository: https://github.com/chenglou/react-spinner
- Issues: https://github.com/chenglou/react-spinner/issues
- npm.io page: https://npm.io/package/react-spinner

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.7 (latest) — 2017-04-20
- 0.2.6 — 2016-04-18
- 0.2.5 — 2016-04-18
- 0.2.4 — 2016-04-18
- 0.2.3 — 2015-10-22
- 0.2.2 — 2015-06-13
- 0.2.1 — 2014-12-03
- 0.2.0 — 2014-10-08
- 0.1.9 — 2014-08-01
- 0.1.8 — 2014-07-30
- 0.1.7 — 2014-07-08
- 0.1.6 — 2014-07-06
- 0.1.5 — 2014-07-06
- 0.1.4 — 2014-04-03
- 0.1.2 — 2014-03-06
- … 2 more at https://npm.io/package/react-spinner/versions

## README

# [React](http://facebook.github.io/react/)-spinner

Zero configuration loading spinner.

[Live demo](https://rawgit.com/chenglou/react-spinner/master/example/index.html) from the example folder. (To build it locally, clone this repo, `npm install && npm start` then open http://localhost:3000/example/)

## install

Bower:
```sh
bower install react-spinner
```

Npm:
```sh
npm install react-spinner
```

Plain old script tag:
```html
<script src="path/to/react-spinner/build/index.js"></script>
```

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

The CSS file:
```html
<link rel="stylesheet" type="text/css" href="path/to/react-spinner.css">
```

The spinner

## API

#### &lt;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](https://github.com/chenglou/react-spinner/blob/master/react-spinner.css#L1-L7).

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

## License

MIT.

---
_Source: https://npm.io/package/react-spinner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
