# @asosunoff/react-modal

> modal component

Latest version **0.0.4** (published 2020-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @asosunoff/react-modal
pnpm add @asosunoff/react-modal
yarn add @asosunoff/react-modal
bun add @asosunoff/react-modal
```

## 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-12-30 |
| First published | 2020-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 119.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexander Sosunov |
| Maintainers | asosunoff |
| Keywords | modal, react-modal, react |

## Links

- npm: https://www.npmjs.com/package/@asosunoff/react-modal
- Repository: https://github.com/aSosunoff/React-Modal
- Homepage: https://asosunoff.github.io/React-Modal/
- Issues: https://github.com/aSosunoff/React-Modal/issues
- npm.io page: https://npm.io/package/@asosunoff/react-modal

## 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-12-30
- 0.0.3 — 2020-12-21
- 0.0.2 — 2020-12-21
- 0.0.1 — 2020-12-21

## README

# Modal component React

## Demo:

[https://asosunoff.github.io/React-Modal/](https://asosunoff.github.io/React-Modal/)

### Install component

[npm i @asosunoff/react-modal](https://www.npmjs.com/package/@asosunoff/react-modal)

### Launch project:

```
git clone https://github.com/aSosunoff/React-Modal.git
cd React-Modal
npm i
npm run start
```

### Test project:

```
npm test
```

### Example

**Slots**

- **Modal.Title** - optional

- **Modal.Body** - optional

- **Modal.Footer** - optional

```js
import Modal from "@asosunoff/react-modal";

const App = () => {
  const { isShow, show, hide } = useShow(false);

  return (
    <>
      <Modal isShow={isShow} onHideModal={hide}>
        <Modal.Title>Title</Modal.Title>
        <Modal.Body>Body</Modal.Body>
        <Modal.Footer>Footer</Modal.Footer>
      </Modal>

      <BaseButton onClick={isShow ? hide : show}>Show</BaseButton>
    </>
  );
};
```

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