# react-loading

> React loading component

Latest version **2.0.3** (published 2018-07-12) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.0.3 |
| Published | 2018-07-12 |
| First published | 2014-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 248.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 813 |
| Author | Fakiolas Marios |
| Maintainers | fakiolinho |
| Keywords | loading, react, react-component |

## Links

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

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

- 2.0.3 (latest) — 2018-07-12
- 2.0.2 — 2018-04-20
- 2.0.1 — 2018-04-19
- 2.0.0 — 2018-04-18
- 1.0.5 — 2018-04-18
- 1.0.4 — 2018-03-21
- 1.0.3 — 2017-12-11
- 1.0.2 — 2017-11-18
- 1.0.1 — 2017-10-25
- 1.0.0 — 2017-10-20
- 0.2.2 — 2017-10-20
- 0.1.4 — 2017-06-17
- 0.1.3 — 2017-06-17
- 0.1.2 — 2017-05-06
- 0.1.1 — 2017-05-06
- … 10 more at https://npm.io/package/react-loading/versions

## README

# react-loading

[![Build Status](https://travis-ci.org/fakiolinho/react-loading.svg?branch=master)](https://travis-ci.org/fakiolinho/react-loading) [![Coverage Status](https://coveralls.io/repos/github/fakiolinho/react-loading/badge.svg?branch=master)](https://coveralls.io/github/fakiolinho/react-loading?branch=master)

Easy to use loading animations for React projects. Uses SVG animations from Brent Jackson's [loading](https://github.com/jxnblk/loading) project.

## Installation

```
npm i react-loading
```
or

```
yarn add react-loading
```

## Demo

Check [here](https://codesandbox.io/s/mqx0ql55qp)

## Loading Types

* blank
* balls
* bars
* bubbles
* cubes
* cylon
* spin
* spinningBubbles
* spokes

## Examples

```javascript
import React from 'react';
import ReactLoading from 'react-loading';

const Example = ({ type, color }) => (
	<ReactLoading type={type} color={color} height={667} width={375} />
);

export default Example;
```

```javascript
import React from 'react';
import ReactLoading from 'react-loading';

const Example = ({ type, color }) => (
	<ReactLoading type={type} color={color} height={'20%'} width={'20%'} />
);

export default Example;
```

### Props

| Name | Type | Default Value |
|:------:|:------:|:---------------:|
| type | String | balls |
| color | String | `#ffffff` |
| delay | Number | 0 (msecs) |
| height | Number or String | 64 (px) |
| width | Number or String | 64 (px) |
| className | String | `''` |


## License

MIT

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