# simple-modal-component

> Open/close and style your own modal in ReactJs.

Latest version **0.2.9** (published 2022-04-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple-modal-component
pnpm add simple-modal-component
yarn add simple-modal-component
bun add simple-modal-component
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.9 |
| Published | 2022-04-04 |
| First published | 2022-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Claudedacc |
| Maintainers | claudedacc |
| Keywords | ReactJs, modal, show, open, simple, style, children |

## Links

- npm: https://www.npmjs.com/package/simple-modal-component
- Repository: https://github.com/Claudedaccache/ClaudeDaccache_14_01032022-Modal_Plugin
- Homepage: https://github.com/Claudedaccache/ClaudeDaccache_14_01032022-Modal_Plugin#readme
- Issues: https://github.com/Claudedaccache/ClaudeDaccache_14_01032022-Modal_Plugin.git
- npm.io page: https://npm.io/package/simple-modal-component

## Dependencies (4)

- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^12.1.4
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.16.3
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 0.2.9 (latest) — 2022-04-04
- 0.2.8 — 2022-04-04
- 0.2.7 — 2022-04-04

## README

# what is this?

Open/close and style your own modal in ReactJs.

# Installation

'npm i simple-modal-component'

Then...

```
import {Modal} from "simple-modal-component";

const [IsOpen, setIsOpen] = useState(true);

    <Modal
        ModalStatus ={IsOpen}
        setModalStatus ={setIsOpen}
        ModalContainerStyle ={{}}
        ModalBodyStyle ={{}}
        ModalInnerStyle ={{}}
        ModalCloseIconStyle ={{}}
        ModalChildren ={}
      >
      </Modal>
    </>
```

##Props

Modal supports several props:

- _ModalStatus_ - _boolean_ (value: true / false) --- Initial value of the modal status
- _setModalStatus_ - _function_ (value: true / false) --- Change the state of the Modal status
- _ModalContainerStyle_ - _object_ (default value {_ModalContainerStyle_} / {{custom style}}) --- custom your own modalContainerstyle
- _ModalBodyStyle_ - _object_ (default value {_ModalBodyStyle_}/ {{custom style}}) --- custom your own ModalBodyStyle style
- ModalInnerStyle - _object_ (default value {ModalInnerStyle}/ {{custom style}}) --- custom your own ModalInnerClass style
- _ModalCloseIconStyle_ - _object_ (default value {_ModalCloseIconStyle_} / {{custom style}}) --- custom your own ModalCloseIconStyle style
- _ModalChildren_ - _string_ (default value "" / {{custom input}}) --- custom your own inner Modal body.

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