# react-modal-hrnet-mthomas

> react-modal is a react library allowing to create a modal with a title and content

Latest version **0.1.3** (published 2023-06-12) · 0 weekly downloads

## Install

```sh
npm install react-modal-hrnet-mthomas
pnpm add react-modal-hrnet-mthomas
yarn add react-modal-hrnet-mthomas
bun add react-modal-hrnet-mthomas
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2023-06-12 |
| First published | 2023-06-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | mthomas1 |

## Links

- npm: https://www.npmjs.com/package/react-modal-hrnet-mthomas
- Repository: https://github.com/minorthomas/react-modal
- Homepage: https://github.com/minorthomas/react-modal#readme
- Issues: https://github.com/minorthomas/react-modal/issues
- npm.io page: https://npm.io/package/react-modal-hrnet-mthomas

## 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) ^13.4.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.16.5
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0

## Recent versions

- 0.1.3 (latest) — 2023-06-12
- 0.1.2 — 2023-06-12
- 0.1.1 — 2023-06-12
- 0.1.0 — 2023-06-12

## README

# HRnet

react-modal is a react library allowing to create a modal with a title and content

## Install the lib
1. Go to the npm site via this link https://www.npmjs.com/package/react-modal-hrnet-mthomas
2. Open the terminal then run the command __npm i react-modal-hrnet-mthomas__

### Use the lib

1. Call at the top of your component __import { Modal } from 'react-modal-hrnet-mthomas';__
2. Call the modal via <Modal/>
3. The modal takes 3 parameters
  - title: string 
  - content: string REQUIRED
  - handleModal: boolean REQUIRED
4. Here is an example of use:
```javascript
import { useState } from 'react';
import { Modal } from 'react-modal-hrnet-mthomas';

export function ModalExample() {
    const [modal, setModal] = useState(false);

    return (
        <>
            {modal && (
                <Modal
                    title='Employee created!'
                    content='The employee you created is now available in the "employee list" tab'
                    handleModal={setModal}
                />
            })
            <button onClick={setModal(true)}>Open modal<button/>
        </>
    );
}

```

__/!\Make sure you have Node.js installed on your machine__

## Team

Developer - Minor Thomas

__NPM: https://www.npmjs.com/package/react-modal-hrnet-mthomas__

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