# react-modal-plr

> react component library

Latest version **1.0.44** (published 2022-02-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-modal-plr
pnpm add react-modal-plr
yarn add react-modal-plr
bun add react-modal-plr
```

## 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.44 |
| Published | 2022-02-22 |
| First published | 2022-02-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | plr |
| Maintainers | priscille-lr |
| Keywords | react, modal, typescript, react-component, reactts |

## Links

- npm: https://www.npmjs.com/package/react-modal-plr
- Repository: https://github.com/Priscille-LR/react-modal
- Homepage: https://github.com/Priscille-LR/react-modal#readme
- Issues: https://github.com/Priscille-LR/react-modal/issues
- npm.io page: https://npm.io/package/react-modal-plr

## 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.44 (latest) — 2022-02-22
- 1.0.43 — 2022-02-18
- 1.0.42 — 2022-02-18
- 1.0.41 — 2022-02-17
- 1.0.40 — 2022-02-16
- 1.0.39 — 2022-02-16
- 1.0.38 — 2022-02-11

## README

# React Modal

A simple and reusable Modal component for React, using Typescript.

## Installation

This package can be installed via [NPM](https://www.npmjs.com/) :
`npm i react-modal-plr`

Or [Yarn](https://yarnpkg.com/) :
`yarn add react-modal-plr`

You’ll need to install React and eventually PropTypes (if you want to use this library in a JS project) separately since those dependencies aren’t included in the package.

## Usage

Here is an example of how you can use this modal component :

```javascript
import { Modal } from 'react-modal-plr';

const Example = () => {
   const [showModal, setShowModal] = useState(false);
   return (
      <Modal
         setShowModal={setShowModal}
         children={
            <>
               <h2>Oh yeah !</h2>
               <p>What you wanted to do was a success</p>
            </>
         }
         buttonContent={'Close'}
      />
   );
};
```

Need more customization ? You can always override the default styles by assigning new CSS properties to the elements.

## License

MIT © [PriscilleLR](https://github.com/Priscille-LR)

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