# react-modal-simple-customizable

> A simple and customizable react modal dialog component for React.JS

Latest version **1.0.8** (published 2023-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-modal-simple-customizable
pnpm add react-modal-simple-customizable
yarn add react-modal-simple-customizable
bun add react-modal-simple-customizable
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2023-01-30 |
| First published | 2022-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 22.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pierre COURANT |
| Maintainers | pcourant |
| Keywords | react, react-component, modal, dialog, typescript |

## Links

- npm: https://www.npmjs.com/package/react-modal-simple-customizable
- Repository: https://github.com/pcourant/react-modal-simple
- npm.io page: https://npm.io/package/react-modal-simple-customizable

## Dependencies (3)

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

## 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

- 1.0.8 (latest) — 2023-01-30
- 1.0.7 — 2023-01-20
- 1.0.6 — 2023-01-13
- 1.0.5 — 2023-01-13
- 1.0.4 — 2023-01-13
- 1.0.3 — 2023-01-12
- 1.0.2 — 2022-12-30
- 1.0.1 — 2022-12-18
- 1.0.0 — 2022-12-17

## README

# react-modal-simple-customizable

[![NPM version][npm-image]][npm-url]
[![Build][github-build]][github-build-url]
![npm-typescript]
[![License][github-license]][github-license-url]

It is simple React modal dialog which can be fully and easily customized

[**Live Demo**](https://pcourant.github.io/react-modal-simple-customizable/)

## Installation:

```bash
npm install react-modal-simple-customizable
```

or

```bash
yarn add react-modal-simple-customizable
```

or

```bash
pnpm add react-modal-simple-customizable
```

## Usage :

Add `Modal` to your component:

```js
import React, { useState } from 'react'
import { Modal } from 'react-modal-simple-customizable'

const App = () => {
  const [showModal, setShowModal] = useState(false)

  const onCloseHandler = () => setShowModal(false)

  return (
    <div className='App'>
      <button type='button' onClick={() => setShowModal(true)}>
        Show Modal
      </button>
      <Modal onClose={onCloseHandler} show={showModal}>
        <h1>Modal title</h1>
        <p>modal paragraph</p>
        <button type='button' onClick={onCloseHandler}>
          Close
        </button>
      </Modal>
    </div>
  )
}
```

[npm-url]: https://www.npmjs.com/package/react-modal-simple-customizable
[npm-image]: https://img.shields.io/npm/v/react-modal-simple-customizable
[github-license]: https://img.shields.io/github/license/pcourant/react-modal-simple-customizable
[github-license-url]: https://github.com/pcourant/react-modal-simple-customizable/blob/master/LICENSE
[github-build]: https://github.com/pcourant/react-modal-simple-customizable/actions/workflows/publish.yml/badge.svg
[github-build-url]: https://github.com/pcourant/react-modal-simple-customizable/actions/workflows/publish.yml
[npm-typescript]: https://img.shields.io/npm/types/react-modal-simple-customizable

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