# modallowenski

> ## InstallationRun the following command:`npm i modallowenski`

Latest version **0.2.7** (published 2022-10-18) · 0 weekly downloads

## Install

```sh
npm install modallowenski
pnpm add modallowenski
yarn add modallowenski
bun add modallowenski
```

## 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.2.7 |
| Published | 2022-10-18 |
| First published | 2022-10-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Johan Lowenski |
| Maintainers | lowenskijohan |
| Keywords | react, components, ui |

## Links

- npm: https://www.npmjs.com/package/modallowenski
- Repository: https://github.com/AlgerJohan/Modal
- Homepage: https://github.com/AlgerJohan/Modal#readme
- Issues: https://github.com/AlgerJohan/Modal/issues
- npm.io page: https://npm.io/package/modallowenski

## Dependencies (8)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.12.1
- [@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

## 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.2.7 (latest) — 2022-10-18
- 0.2.6 — 2022-10-18
- 0.1.6 — 2022-10-18
- 0.2.5 — 2022-10-18
- 0.1.5 — 2022-10-14
- 0.1.4 — 2022-10-14
- 0.1.3 — 2022-10-14
- 0.1.2 — 2022-10-14
- 0.1.1 — 2022-10-14
- 0.1.0 — 2022-10-13

## README

# Modal library of React components created using `create-react-app`.

## InstallationRun the following command:`npm i modallowenski`

### Importing the library

```javascript
import { Modal } from "modallowenski";
```

### Using the library

To display the modal, the "show" parameter must be set to true

```javascript
const App = () => {
  const [showModal, setShowModal] = useState(false);
  const openModal = () => {
    setShowModal(true);
  };
  return (
    <div className="App">
      <button onClick={openModal}>Open Modal</button>
      <Modal show={showModal} />
    </div>
  );
};

export default App;
```

### Parameters

Text to be displayed in the modal can be passed as a parameter to the component.

```javascript
<Modal
  show={showModal}
  title="Hello World!"
  titleButton="Continue"
  noCloseButton
  noTextButton
  closeOnClick
  noKeyEscape
/>
```

title: Text to be displayed in the modal title (default: "Modal Title")

titleButton: Text to be displayed in the modal button (default: "Close")

noCloseButton - if set to true, the close button will not be displayed

noTextButton- if set to true, the text button will not be displayed

closeOnClick - if set to true, the modal will close when you click on the background

noKeyEscape - if set to true, the modal will not close when you press the escape key

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