# react-loading-animation

> A pretty loading spinner based on Google's colorful spinner animation.

Latest version **1.4.0** (published 2017-10-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-loading-animation
pnpm add react-loading-animation
yarn add react-loading-animation
bun add react-loading-animation
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2017-10-03 |
| First published | 2016-05-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 34 |
| Author | Nathan Hoad |
| Maintainers | nathanhoad |
| Keywords | react, loading, spinner, animation, svg |

## Links

- npm: https://www.npmjs.com/package/react-loading-animation
- Repository: https://github.com/nathanhoad/react-loading-animation
- Homepage: https://github.com/nathanhoad/react-loading-animation#readme
- Issues: https://github.com/nathanhoad/react-loading-animation/issues
- npm.io page: https://npm.io/package/react-loading-animation

## 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

- 1.4.0 (latest) — 2017-10-03
- 1.3.0 — 2017-06-14
- 1.2.1 — 2017-04-24
- 1.2.0 — 2017-04-24
- 1.1.0 — 2016-11-20
- 1.0.1 — 2016-05-31
- 1.0.0 — 2016-05-01

## README

# React Loading Animation

![](https://codeship.com/projects/1d909030-61f0-0134-dd2d-36e4b4e4e227/status?branch=master)

A simple loading component to show a colorful animated spinner.


## Usage

```javascript
const Loading = require('react-loading-animation');
```

You can either render the component directly (with no props) or render it as a parent
of other components and pass in `isLoading` as a prop:

```javascript
const ListOfThings = ({ isFetching, things }) => {
    if (isFetching && things.size() == 0) return <Loading />;
    
    return (
        <ul>
            ...
        </ul>
    );
}
```

or

```javascript
const ListOfThings = ({ isFetching, things }) => {
    return (
        <Loading isLoading={isFetching && things.size() == 0}>
            <ul>
                ...
            </ul>
        </Loading>
    );
}
```


## Thanks

This component is based on the work at [https://codepen.io/jczimm/pen/vEBpoL](https://codepen.io/jczimm/pen/vEBpoL)

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