# jsc-modal-dialog

> Modal dialog package created for the 14th project of the OpenClassrooms' frontend development program

Latest version **0.1.2** (published 2022-10-31) · 0 weekly downloads

## Install

```sh
npm install jsc-modal-dialog
pnpm add jsc-modal-dialog
yarn add jsc-modal-dialog
bun add jsc-modal-dialog
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2022-10-31 |
| First published | 2022-09-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | JSC |
| Maintainers | jowan-jsc |
| Keywords | react, components, dialog, modal, ui |

## Links

- npm: https://www.npmjs.com/package/jsc-modal-dialog
- Repository: https://github.com/JohanSannier/jsc-modal-dialog
- Homepage: https://github.com/JohanSannier/jsc-modal-dialog#readme
- Issues: https://github.com/JohanSannier/jsc-modal-dialog/issues
- npm.io page: https://npm.io/package/jsc-modal-dialog

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@mesalvo/react-ui](https://npm.io/package/@mesalvo/react-ui.md) — 1.7K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2022-10-31
- 0.1.1 — 2022-09-05
- 0.1.0 — 2022-09-05

## README

# jsc-modal-dialog

```sh
// with npm
npm i jsc-modal-dialog
// with yarn
yarn add jsc-modal-dialog
```

## Usage

Please follow the instructions below to get started:

```jsx
import React, { useState } from "react";
import { ModalDialog } from "jsc-modal-dialog";

export const App = () => {
  const [openModal, setOpenModal] = useState(false);

  const onOpenModal = () => setOpenModal(true);
  const onCloseModal = () => setOpenModal(false);

  const handleClickOpen = () => {
    onOpenModal();
  };
  return (
    <>
      <button type="button" onClick={handleClickOpen}>
        Click to open the dialog modal
      </button>

      <ModalDialog
        open={openModal}
        title="Title of the modal"
        description="Description of the modal"
        closeContent="Close"
        handleCloseModal={onCloseModal}
      />
    </>
  );
};
ReactDOM.render(<App />, document.querySelector("#app"));
```

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