# react-modal-comp

> Another react modal component

Latest version **1.0.5** (published 2021-10-30) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-10-30 |
| First published | 2021-10-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Juanjo Ortiz |
| Maintainers | juanjoort |

## Links

- npm: https://www.npmjs.com/package/react-modal-comp
- npm.io page: https://npm.io/package/react-modal-comp

## Recent versions

- 1.0.5 (latest) — 2021-10-30
- 1.0.4 — 2021-10-30
- 1.0.3 — 2021-10-30
- 1.0.2 — 2021-10-30
- 1.0.1 — 2021-10-30
- 1.0.0 — 2021-10-29
- 0.1.0 — 2021-10-29

## README

**Component example**
```jsx
import { useState } from  'react'
import {Modal} from  'react-modal-comp'

function  App() {
	const [visible, setVisible] =  useState(false)
	return (
		<div  className="App">
			<button  onClick={() =>  setVisible(true)}>Active modal</button>
			<Modal  showModal={visible}  closeModal={() =>  setVisible(false)}  bodyClass='component-body-modal'>
				Modal box
			</Modal>
		</div>
	)
}

export  default  App
```

**Component Props**
|Props|Type | Desc 
|---|---|---|
| showModal| boolean | show/hide modal
| closeModal| fn|return the action to close the modal
| overlayClass| string|overlay className
| bodyClass| string|body className

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