# reatc-dev-modal

> React Modal Component

Latest version **1.8.0** (published 2021-08-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install reatc-dev-modal
pnpm add reatc-dev-modal
yarn add reatc-dev-modal
bun add reatc-dev-modal
```

## 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.8.0 |
| Published | 2021-08-12 |
| First published | 2021-08-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 167.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Abishek |
| Maintainers | abisheksrv |

## Links

- npm: https://www.npmjs.com/package/reatc-dev-modal
- npm.io page: https://npm.io/package/reatc-dev-modal

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [styled-components](https://npm.io/package/styled-components.md) ^5.3.0

## Recent versions

- 1.8.0 (latest) — 2021-08-12
- 1.7.0 — 2021-08-12
- 1.6.0 — 2021-08-12
- 1.5.0 — 2021-08-12
- 1.4.0 — 2021-08-12
- 1.3.0 — 2021-08-12
- 1.2.0 — 2021-08-12
- 1.1.0 — 2021-08-12
- 1.0.0 — 2021-08-12

## README

# react-dev-modal

This package provides an easy and simple way to use modal in react.

## Installation

`npm install react-dev-modal`

## Usage

```
import React, { useState } from 'react'
import { Modal, ModalTitle, ModalContent, ModalFooter } from 'reatc-dev-modal'

const SampleUsage = () => {

  const [isModalOpen, setIsModalOpen] = useState(false)

  const toggleModal = () => {
    setIsModalOpen(!isModalOpen)
  }

  const style = {
    border: '2px solid #000'
  }

  return (
    <>
      <button onClick={toggleModal}>Open Modal</button>
      <Modal
        isOpen={isModalOpen}
        handleClose={toggleModal}
        height='300px'
        width='600px'
        position='top' // top, center, bottom
        customStyle={style} // pass the custom styles
      >
        <ModalTitle handleClose={toggleModal}>
          <TitleText>Title</TitleText>
        </ModalTitle>
        <ModalContent>Content</ModalContent>
        <ModalFooter>Footer</ModalFooter>
      </Modal>
    </>
  )
}

export default SampleUsage
```

## Author

Abishek

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