An open API service indexing awesome lists of open source software.

https://github.com/mburakerman/reactplosive-modal

🔥 A simple React modal component with an explosion effect
https://github.com/mburakerman/reactplosive-modal

modal react react-modal

Last synced: 27 days ago
JSON representation

🔥 A simple React modal component with an explosion effect

Awesome Lists containing this project

README

        

# 🔥 Reactplosive Modal

> A simple React modal component with an explosion effect


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


## ⏬ Install

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

## 🪡 Usage

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

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

return (
Title}
isVisible={isModalVisible}
onClose={() => setIsModalVisible(false)}
>

Lorem ipsum dolor sit amet.


I do nothing.

);
};

```

## ⚙️ Props

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

## ©️ License

Licensed under MIT