# wh-modal

> Custom modal for Wealth Health company.

Latest version **1.0.16** (published 2021-05-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install wh-modal
pnpm add wh-modal
yarn add wh-modal
bun add wh-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.0.16 |
| Published | 2021-05-25 |
| First published | 2021-05-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 40.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Loïc POCCARD |
| Maintainers | poccardl |

## Links

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

## Dependencies (6)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.2.0
- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) ^0.1.14
- [@fortawesome/fontawesome-svg-core](https://npm.io/package/@fortawesome/fontawesome-svg-core.md) ^1.2.35
- [@fortawesome/free-solid-svg-icons](https://npm.io/package/@fortawesome/free-solid-svg-icons.md) ^5.15.3

## Recent versions

- 1.0.16 (latest) — 2021-05-25
- 1.0.15 — 2021-05-25
- 1.0.14 — 2021-05-25
- 1.0.13 — 2021-05-25
- 1.0.12 — 2021-05-25
- 1.0.11 — 2021-05-25
- 1.0.10 — 2021-05-25
- 1.0.9 — 2021-05-25
- 1.0.8 — 2021-05-25
- 1.0.7 — 2021-05-25
- 1.0.6 — 2021-05-25
- 1.0.5 — 2021-05-25
- 1.0.4 — 2021-05-24
- 1.0.3 — 2021-05-24
- 1.0.2 — 2021-05-24
- … 2 more at https://npm.io/package/wh-modal/versions

## README

Custom modal for Wealth Health company.

# Installation

You can install wh-modal with [npm](https://www.npmjs.com/)

`npm install wh-modal`

# Import

You need to import component
```JSX
import WhModal from 'wh-modal'

<WhModal />
```

# Opening

The modal is invisible by default.
To display the modal you must pass the value `true` to the argument `isModal={'true'}`

```JSX
import WhModal from 'wh-modal'

function MyComponent() {
    return (
        <>
        <WhModal isModal={'true'} />
        </>
    )
}
```

# Closing

To hide the modal you must pass the value `false` to the argument `isModal={'false'}` or click on the 'close' button directly on the modal.

# Options

To modify the content of modal you must use the argument `content={}`.
To change the appearance of the modal you must pass an object to the argument `modalStyle={}`

example :

```JSX
import WhModal from 'wh-modal'

function MyComponent() {
    return (
        <>
        <WhModal content={myContent} modalStyle={{backgroundColor: "red", justifyContent: "left"}} />
        </>
    )
}
```

list of available style arguments :

```CSS
backgroundColor,
fontSize,
justifyContent,
width,
height,
color,
boderStyle,
borderWidth,
borderColor,
borderRadius,
```

# Bugs & Feature Requests

If you encounter bugs, please create an [issue](https://github.com/Poccardl/wh-modal/issues).

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