# alev-modal

> alev-modal is a modal library, is wrritten in Javascript. It is a minimal library without any other dependencies, while being performant and straightforward to use, requiring developers to write fewer lines of code than other form libraries.

Latest version **1.1.4** (published 2022-08-11) · 0 weekly downloads

## Install

```sh
npm install alev-modal
pnpm add alev-modal
yarn add alev-modal
bun add alev-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.1.4 |
| Published | 2022-08-11 |
| First published | 2022-06-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | alevsametoglu |

## Links

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

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

## Recent versions

- 1.1.4 (latest) — 2022-08-11
- 1.1.3 — 2022-06-25
- 1.1.2 — 2022-06-21
- 1.1.1 — 2022-06-17
- 0.1.1 — 2022-06-17
- 0.1.0 — 2022-06-17
- 1.0.0 — 2022-06-14

## README

#alev-modal

alev-modal is a modal library, is wrritten in Javascript. It is a minimal library without any other dependencies, while being performant and straightforward to use, requiring developers to write fewer lines of code than other form libraries.

A library of React components created using <a href="https://www.npmjs.com/package/create-react-library">create-react-library</a>.

# Demo

![Demo text](demo.png)

# Installation

Install alev-modal with npm

```javascript
npm i alev-modal
```

# Example

```javascript
import React, { useState } from 'react';
import { Modal } from '../lib/components/Modal';
import logo from './logo.png';

export const App = () => {
  const [show, setShow] = useState(false);
  return (
    <>
      <button onClick={() => setShow(true)}>show model</button>
      {show ? 'show' : 'close'}
      <Modal
        image={logo}
        width='400px'
        onClose={() => {
          setShow(false);
          console.log('close event fired');
        }}
        show={show}
        title='Succes'
        text='New employe has been created'
      ></Modal>
    </>
  );
};
```

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