# react-spinner-animated

> Spinner/Loader library for react

Latest version **3.1.1** (published 2022-03-23) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.1 |
| Published | 2022-03-23 |
| First published | 2021-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 91.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | venushadilshan |
| Maintainers | venusha |
| Keywords | react, react-loader, react-spinner, animated, animated-loader, animated-spinner |

## Links

- npm: https://www.npmjs.com/package/react-spinner-animated
- Repository: https://github.com/venushadilshan/react-spinner
- Homepage: https://github.com/venushadilshan/react-spinner#readme
- Issues: https://github.com/venushadilshan/react-spinner/issues
- npm.io page: https://npm.io/package/react-spinner-animated

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

- 3.1.1 (latest) — 2022-03-23
- 3.1.0 — 2022-03-18
- 3.0.9 — 2022-03-15
- 3.0.8 — 2022-03-14
- 3.0.7 — 2022-03-14
- 3.0.6 — 2022-03-14
- 3.0.5 — 2022-03-14
- 3.0.4 — 2022-03-14
- 3.0.3 — 2022-03-14
- 3.0.2 — 2022-03-14
- 3.0.1 — 2022-03-14
- 3.0.0 — 2022-03-14
- 2.0.0 — 2021-12-12
- 1.0.0 — 2021-12-12
- 0.6.0 — 2021-12-12
- … 5 more at https://npm.io/package/react-spinner-animated/versions

## README

# react-spinner-animated

> Loader/Spinner Library for React 

[![NPM](https://img.shields.io/npm/v/react-spinner.svg)](https://www.npmjs.com/package/react-spinner) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm i react-spinner-animated
```

## Variations

<p float="left"><img src="https://i.ibb.co/YT6bwzL/2022-03-18-18-36-17.gif" width="600px" >


</p>

 - `<BarLoader/>`
 - `<DoubleBubble>`
 - `<SlidingPebbles/>`
 - `<DoubleOrbit/>`
 - `<Spinner/>`
 - `<HalfMalf/>`
 - `<TripleMaze/>`


## Usage

You must import both the Loader/Spinner component and index.css 
<br>i.e - `import 'react-spinner-animated/dist/index.css'`

```jsx

import { BarLoader,DoubleBubble, SlidingPebbles } 
from 'react-spinner-animated';

import 'react-spinner-animated/dist/index.css'

class MyComponent extends Component {
  render() {
    return <DoubleOrbit text={"Loading..."} bgColor={"#F0A500"} 
    center={false} width={"150px"} height={"150px"}/>
  }
}
```

## Props

<table border="1">
<tr>
<th>Prop</th>

<th>Usage</th>
<th>Default</th>
<th>Type</th>
</tr>

<tr>
<td>text </td>
<td> Custom text for display with the loader/spinner</td>
<td> " "</td>
<td> Strings</td>
</tr>

<tr>
<td>bgColor </td>
<td> Custom text for display with the loader/spinner</td>
<td> White</td>
<td> Any color name or HEX color code</td>
</tr>

<tr>
<td>width </td>
<td> width of the container </td>
<td> -</td>
<td> pixels (150px)</td>
</tr>

<tr>
<td>height </td>
<td> height of the container </td>
<td> -</td>
<td> pixels (150px)</td>
</tr>

<tr>
<td>center </td>
<td> Place the component fixed at the center of the page </td>
<td> true</td>
<td> Boolean (true, false)</td>
</tr>


</table>

<hr>

<br>


### See you again with more spinners

## License

MIT © [venushadilshan](https://github.com/venushadilshan)

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