# react-modal-library-rayan-dahmena

> React modal library by Rayan Dahmena

Latest version **1.0.9** (published 2022-10-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-modal-library-rayan-dahmena
pnpm add react-modal-library-rayan-dahmena
yarn add react-modal-library-rayan-dahmena
bun add react-modal-library-rayan-dahmena
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2022-10-27 |
| First published | 2022-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 5.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rayan Dahmena |
| Maintainers | rayan_dahmena |
| Keywords | react, react-component, react-modal, dialog |

## Links

- npm: https://www.npmjs.com/package/react-modal-library-rayan-dahmena
- Repository: https://github.com/rayanadir/modal-library
- Homepage: https://github.com/rayanadir/modal-library#readme
- Issues: https://github.com/rayanadir/modal-library/issues
- npm.io page: https://npm.io/package/react-modal-library-rayan-dahmena

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1

## 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.9 (latest) — 2022-10-27
- 1.0.8 — 2022-10-27
- 1.0.7 — 2022-06-27
- 1.0.6 — 2022-06-15
- 1.0.5 — 2022-06-15
- 1.0.4 — 2022-06-15
- 1.0.3 — 2022-06-14
- 1.0.2 — 2022-06-13
- 1.0.1 — 2022-06-13
- 1.0.0 — 2022-06-13

## README

# modal-library

> react modal library

[![NPM](https://img.shields.io/npm/v/modal-library.svg)](https://www.npmjs.com/package/modal-library) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm i react-modal-library-rayan-dahmena
```

## Usage

In your `App.jsx` file

```jsx
import React from "react"

import { Modal, useModal } from "react-modal-library-rayan-dahmena"

//Create your own component modal content
import MyComponentContent from " *your path* "

const App = () => {

  // Declare useModal hook
  const { isShowing, toggle } = useModal();

  return (
    <div>
      <button onClick={toggle}>Open Modal</button>
      <Modal element={<MyComponentContent />} isShowing={isShowing} toggle={toggle}/>
    </div>
  )
} 

```

`MyComponentContent.jsx` file
```jsx
import React from "react"

const MyComponentContent = () => {
  return(
    <div>
      My modal content
    </div>
  )
}

export default MyComponentContent
```


## License

MIT © [rayanadir](https://github.com/rayanadir)

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