# crelm-popup

> A small (

Latest version **1.0.6** (published 2020-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install crelm-popup
pnpm add crelm-popup
yarn add crelm-popup
bun add crelm-popup
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2020-08-14 |
| First published | 2020-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Patrick Trester |
| Maintainers | scriptleaf |
| Keywords | popup, responsive, minimal, simple, crelm, component |

## Links

- npm: https://www.npmjs.com/package/crelm-popup
- Repository: https://github.com/uraikus/crelm-popup
- Homepage: https://github.com/uraikus/crelm-popup#readme
- Issues: https://github.com/uraikus/crelm-popup/issues
- npm.io page: https://npm.io/package/crelm-popup

## Dependencies (1)

- [crelm](https://npm.io/package/crelm.md) ^6.0.0

## 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

- 1.0.6 (latest) — 2020-08-14
- 1.0.5 — 2020-08-13
- 1.0.4 — 2020-08-13
- 1.0.3 — 2020-08-13
- 1.0.2 — 2020-08-13
- 1.0.1 — 2020-08-13
- 1.0.0 — 2020-08-13

## README

# crelm-popup
[GitHUB](https://github.com/uraikus/crelm-popup)

A small (<2kb), simple popup component with responsive design using the crelm library. Crelm is the only dependency.

Install:
```
npm i crelm-popup
```
Utilization:
```javascript
let popup = require('crelm-popup')

popup(childrenElements:array, [closeOnBlurClick:boolean || false, maxWidth:number || 300])
let dialog 
dialog = popup([
  {tag: 'h1', text: 'Hello World'},
  {tag: 'input', type: 'button', value: 'Close Dialog', onclick: () => dialog.close()}
])
// you can readjust the maxWidth with the method below
dialog.setWidth(500)
// close the dialog with the method below
dialog.close()
```
You can apply additional styles with the below class names:
```css
.c-popup {}
.c-blur {}
```
See [crelm](https://www.npmjs.com/package/crelm) for more on the children elements.

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