# reactplosive-modal

> A simple React modal component with an explosion effect

Latest version **1.0.5** (published 2023-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install reactplosive-modal
pnpm add reactplosive-modal
yarn add reactplosive-modal
bun add reactplosive-modal
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-01-04 |
| First published | 2022-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mburakerman |
| Maintainers | mburakerman |
| Keywords | modal, popup, react-modal, explosive-modal, reactplosive-modal |

## Links

- npm: https://www.npmjs.com/package/reactplosive-modal
- Repository: https://github.com/mburakerman/reactplosive-modal
- Issues: https://github.com/mburakerman/reactplosive-modal/issues
- npm.io page: https://npm.io/package/reactplosive-modal

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads
- [react-native-modal-translucent-axton](https://npm.io/package/react-native-modal-translucent-axton.md) — 4 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2023-01-04
- 1.0.4 — 2023-01-04
- 1.0.3 — 2022-12-01
- 1.0.2 — 2022-12-01
- 1.0.1 — 2022-11-25
- 1.0.0 — 2022-11-25

## README

# 🔥 Reactplosive Modal

> A simple React modal component with an explosion effect

<br />

![NPM](https://img.shields.io/npm/v/reactplosive-modal)
![NPM License](https://img.shields.io/npm/l/reactplosive-modal)

<br />

## ⏬ Install

```js
npm i reactplosive-modal
```

## 🪡 Usage

```js
import ReactplosiveModal from "reactplosive-modal";
```

```html
const YourComponent = () => {
  const [isModalVisible, setIsModalVisible] = useState(false);

  return (
    <ReactplosiveModal
      title={<h4>Title</h4>}
      isVisible={isModalVisible}
      onClose={() => setIsModalVisible(false)}
    >
      <p> Lorem ipsum dolor sit amet.</p>
      <button>I do nothing.</button>
    </ReactplosiveModal>
  );
};

```

## ⚙️ Props

```js
{
  title?: ReactNode,
  children: ReactNode,
  isVisible: boolean,
  width?: string, // default 500px
  onClose: (visibility: boolean) => void,
  outsideClickEnabled?: boolean, // default true
};
```

## ©️ License

Licensed under MIT

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