# modal-module-thiw

> Modal modul made with create-react-library

Latest version **1.0.13** (published 2022-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install modal-module-thiw
pnpm add modal-module-thiw
yarn add modal-module-thiw
bun add modal-module-thiw
```

## 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.13 |
| Published | 2022-05-11 |
| First published | 2022-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | youlijie |
| Maintainers | youlijie |

## Links

- npm: https://www.npmjs.com/package/modal-module-thiw
- Repository: https://github.com/youlijie/Modal-Module-NPM
- Homepage: https://github.com/youlijie/Modal-Module-NPM#readme
- Issues: https://github.com/youlijie/Modal-Module-NPM/issues
- npm.io page: https://npm.io/package/modal-module-thiw

## Dependencies (3)

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) ^0.1.18
- [@fortawesome/fontawesome-svg-core](https://npm.io/package/@fortawesome/fontawesome-svg-core.md) ^6.1.1
- [@fortawesome/free-solid-svg-icons](https://npm.io/package/@fortawesome/free-solid-svg-icons.md) ^6.1.1

## Recent versions

- 1.0.13 (latest) — 2022-05-11
- 1.0.12 — 2022-05-11
- 1.0.11 — 2022-05-10
- 1.0.10 — 2022-05-09
- 1.0.9 — 2022-05-09
- 1.0.8 — 2022-05-09
- 1.0.7 — 2022-05-09
- 1.0.6 — 2022-05-09
- 1.0.5 — 2022-05-09
- 1.0.4 — 2022-05-08
- 1.0.3 — 2022-05-08
- 1.0.2 — 2022-05-07
- 1.0.1 — 2022-05-07
- 1.0.0 — 2022-05-07

## README

Custom modal for Wealth Health company.

# Installation

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

`npm i modal-module-thiw`

# Import

You need to import component and CSS
```JSX
import Modal from "modal-module-thiw";
import "modal-module-thiw/dist-unminified/index.css";

<Modal />
```

# Opening

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

```JSX
import Modal from "modal-module-thiw";
import "modal-module-thiw/dist-unminified/index.css";

function MyComponent() {
    return (
        <>
        <Modal setIsModalProp={'open'} isModal={'open'} />
        </>
    )
}
```

# Closing

To hide the modal you must pass the value `closed` to the argument `setIsModalProp={'closed'}` 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 Modal from "modal-module-thiw";
import "modal-module-thiw/dist-unminified/index.css";

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

list of available style arguments :

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

## License

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

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