# modal-actions

> Simple & customizable modal with navigation, input and more in vanilla JS

Latest version **0.0.14** (published 2024-03-13) · (LGPL-3.0) license · 0 weekly downloads

## Install

```sh
npm install modal-actions
pnpm add modal-actions
yarn add modal-actions
bun add modal-actions
```

## 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.0.14 |
| Published | 2024-03-13 |
| First published | 2022-10-12 |
| Weekly downloads | 0 |
| License | (LGPL-3.0) |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 111.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pythonic Café |
| Maintainers | marcmatias, turicas |
| Keywords | modal, alert |

## Links

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

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads
- [react-native-modal-translucent-axton](https://npm.io/package/react-native-modal-translucent-axton.md) — 4 weekly downloads

## Recent versions

- 0.0.14 (latest) — 2024-03-13
- 0.0.13 — 2022-11-22
- 0.0.12 — 2022-11-17
- 0.0.11 — 2022-11-05
- 0.0.10 — 2022-10-26
- 0.0.9 — 2022-10-26
- 0.0.8 — 2022-10-20
- 0.0.7 — 2022-10-19
- 0.0.6 — 2022-10-19
- 0.0.5 — 2022-10-19
- 0.0.4 — 2022-10-18
- 0.0.3 — 2022-10-18
- 0.0.2 — 2022-10-18
- 0.0.1 — 2022-10-12

## README

# Modal Actions

Simple & customizable modal with navigation, input, confirmation buttons, tab
buttons and more.

## Development

Docker container running lite-server and watching code changes

```bash
make watch
```

Results can be tested in [http://localhost:3000/example/index.html](http://localhost:3000/example/index.html)

## Generate bundle

Local bundle pack with project name and actual project version in root folder

```bash
make bundle
```

## More

To see all make commands

```bash
make help
```

## Installation

```bash
yarn add modal-actions
```

Or directly in the HTML file

```html
<!-- Add to head HTML tag -->
<link rel="stylesheet" href="./dist/modal-actions.min.css" />
<!-- Add to the bottom of body HTML tag -->
<script src="./dist/modal-actions.min.js"></script>

<!-- or directly from unpkg -->
<link
  rel="stylesheet"
  href="https://unpkg.com/modal-actions@latest/dist/modal-actions.min.css"
/>
<script src="https://unpkg.com/modal-actions@latest/dist/modal-actions.min.js"></script>
```

## Run

```js
import ModalActions from "modal-actions";

// Only this line when included with script HTML tag
const modal = new ModalActions("#my-container");
```

Examples in example/index.html

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