# react-loading-spinkit

> page loading component

Latest version **0.1.8** (published 2018-02-26) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2018-02-26 |
| First published | 2017-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 58.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | phobal |
| Maintainers | fengbo |
| Keywords | react, react-component, loading, spinkit, react-loading, react-spinkit, react-loading-spinkit |

## Links

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

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0
- [react-spinkit](https://npm.io/package/react-spinkit.md) ^3.0.0

## 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.1.8 (latest) — 2018-02-26
- 0.1.5 (lastest) — 2017-12-26
- 0.1.7 — 2018-01-03
- 0.1.6 — 2018-01-02
- 0.1.4 — 2017-12-12
- 0.1.3 — 2017-12-08
- 0.1.2 — 2017-12-08
- 0.1.1 — 2017-12-08
- 0.1.0 — 2017-12-08

## README

## react-loading-spinkit

[![npm version](https://badge.fury.io/js/react-loading-spinkit.svg)](https://badge.fury.io/js/react-loading-spinkit)

![](./assets/loading.gif)  

this component base on [react-spinkit](https://github.com/KyleAMathews/react-spinkit), but more convenient

### Required Knowledge

must add [css-loader](https://github.com/webpack/css-loader) and [style-loader](https://github.com/webpack/style-loader) in webpack config file, you can look [this file](https://github.com/phobal/react-loading-spinkit/blob/master/webpack.config.js#L39)

### Installation

``` bash
npm install --save react-loading-spinkit
```

### Usage

``` js
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Loading from 'react-loading-spinkit';

class App extends Component {
  render() {
    return (
      <div style={{ height: '100vh', width: '100vw' }}>
        <Loading show={true} />
      </div>
    );
  }
}

ReactDOM.render(
  <App />,
  document.querySelector('.app'),
);
```
### Props

  | Name | Type | Default | Description |
  |:-----|:-----|:--------|:------------|
| className | string |  | add a custom classname to the outer div |
| color | string | '#5282ef' | programmatically set the color of the spinners; this can either be a hex value or a color word. |
| fadeIn | string |  | set the time before the spinner fades in. |
| height | union:&nbsp;string<br>&nbsp;number<br> | '100%' | loading overlay's height |
| name | string |  | specify spinner to use (defaults to line-scale-pulse-out-rapid). |
| overrideSpinnerClassName | string |  | change the default sk-spinner className. |
| show | bool | false | control loading show status |
| width | union:&nbsp;string<br>&nbsp;number<br> | '100%' | loading overlay's width |

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