# modal-gl-component

> This component must work with a react project like [Create React App](https://github.com/facebook/create-react-app).

Latest version **0.1.0** (published 2022-03-17) · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2022-03-17 |
| First published | 2022-03-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 26.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | malfinwe |

## Links

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

## Dependencies (8)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.0
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.12.1
- [@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.2
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0

## Recent versions

- 0.1.0 (latest) — 2022-03-17

## README

# GL-React-Modal

This component must work with a react project like [Create React App](https://github.com/facebook/create-react-app).

## Install component

In the project directory, you can run:

`npm i modal-gl-component`

or

`yarn add test-modale-gl`

### How to use this component

1. First import Modal (import { Modal } from "modal-gl-component/dist/index")

2. In the component where you will use it, you must have :

   - state (withe the React Hook useState)
   - a close function

3. Add the module where you want to use it.

For example :

```
export default function AppTest () {
    const [modal, setModal] = useState(false)
    const closeModal = () => {
        setModal(!modal)
    }

    return (
        <Modal
            state={modal}
            close={closeModal}
        >
    )
}
```

Homepage: [https://github.com/glajoux/Modal_LajouxGuillaume_17032022](https://github.com/glajoux/Modal_LajouxGuillaume_17032022)

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