# busy-indicator

> testing reusable busy indicator

Latest version **0.0.4** (published 2020-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install busy-indicator
pnpm add busy-indicator
yarn add busy-indicator
bun add busy-indicator
```

## 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.0.4 |
| Published | 2020-02-20 |
| First published | 2020-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gian Andres |
| Maintainers | naig |
| Keywords | react, busy indicator |

## Links

- npm: https://www.npmjs.com/package/busy-indicator
- Repository: https://github.com/naigg/busy-indicator
- Homepage: https://github.com/naigg/busy-indicator#readme
- Issues: https://github.com/naigg/busy-indicator/issues
- npm.io page: https://npm.io/package/busy-indicator

## 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.0.4 (latest) — 2020-02-20
- 0.0.3 — 2020-02-20
- 0.0.2 — 2020-02-20
- 0.0.1 — 2020-02-20

## README

# busy-indicator

A test using busy-indicator

## 🚀 Getting Started

Using [`npm`]():

```bash
npm i busy-indicator
```

## ✨ Usage

```javascript
import BusyIndicator, { BusyIndicatorContext }  from "busy-indicator";

function DeepChild() {
  const { showDisplay, hideDisplay } = useContext(BusyIndicatorContext);

  return (
    <div>
      <button onClick={showDisplay}>Show</button>
      <button onClick={hideDisplay}>Hide</button>
    </div>
  )
}

export default () => {
  return (
    <BusyIndicator displayStyles={} displayContent={} >
      ...
      <ChildComponent />
    </BusyIndicator>
  );
};
```

## 📌 Props

Prop                  | Type     | Default                   | Required
--------------------- | -------- | ------------------------- | --------
`children`|any|`false`|No
`displayStyles`|object|`{}`|No
`displayContent`|(object|string)|`loading`|No

## ✌️ License
[MIT](https://opensource.org/licenses/MIT)

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