# simple-component-library-modal

> A simple library that allows you to set up a modal under react. You can put a title name, a message and also put the message of your button.

Latest version **1.0.0** (published 2022-09-19) · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2022-09-19 |
| First published | 2022-09-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | skews |

## Links

- npm: https://www.npmjs.com/package/simple-component-library-modal
- npm.io page: https://npm.io/package/simple-component-library-modal

## Recent versions

- 1.0.0 (latest) — 2022-09-19
- 0.9.28 — 2022-09-19
- 0.9.27 — 2022-09-19
- 0.9.26 — 2022-09-19
- 0.9.25 — 2022-09-19
- 0.9.24 — 2022-09-17
- 0.9.23 — 2022-09-17
- 0.9.22 — 2022-09-17
- 0.9.21 — 2022-09-17
- 0.9.20 — 2022-09-17
- 0.9.19 — 2022-09-17
- 0.9.18 — 2022-09-17
- 0.9.17 — 2022-09-17
- 0.9.16 — 2022-09-16
- 0.9.15 — 2022-09-16
- … 13 more at https://npm.io/package/simple-component-library-modal/versions

## README

# simple-component-library-modal

A simple library that allows you to set up a modal under react.
You can put a title name, a message and also put the message of your button.

## Installation and usage

```npm install simple-component-library-modal```
or 
```npm install simple-component-library-modal --force```

Then use it in your app:

**With React Component**

```js 
import { useState } from 'react';
import { Modal } from 'simple-component-library-modal'

    // If you want the modal to open, the value of the state setModal must be = a true
    const [modal, setModal] = useState(false);

    return (    
            <>
                {modal === true ? (
                    <Modal openModal={modal} title="You'r title" message="You'r message" btnMessage="you'r button message" closeModal={() => setModal(false)} />
                ): <></>} 
            </>
        )

```

## Props

Common props you may want to specify include:

* ```openModal``` - needs a true value to be open
* ```title``` - Must have a string value 
* ```message``` - Must have a string value 
* ```btnMessage``` - Must have a string value 
* ```closeModal``` - needs a false value to be closed

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