# dgtek-popup

> Component for npm registry

Latest version **0.0.5** (published 2020-09-09) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2020-09-09 |
| First published | 2020-09-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | garevna |
| Maintainers | garevna |
| Keywords | dgtek, popup, component, npm, registry |

## Links

- npm: https://www.npmjs.com/package/dgtek-popup
- Repository: https://github.com/garevna/dgtek-components/tree/popup
- npm.io page: https://npm.io/package/dgtek-popup

## Dependencies (4)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [vuetify](https://npm.io/package/vuetify.md) ^2.2.11
- [dgtek-styles](https://npm.io/package/dgtek-styles.md) ^0.0.8

## 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.5 (latest) — 2020-09-09
- 0.0.4 — 2020-09-09
- 0.0.1 — 2020-09-09

## README

# dgtek-popup

This component is designed to be utilized in dgtek.net projects only.

It should not be used outside the dgtek.net and landing pages of **dgtek.net**

## Install the component

```js
yarn add dgtek-popup
```

#### Add with _script_ tag

###### (Not recommended)
```html
<script src="https://registry.npmjs.org/dgtek-popup"></script>
```

## Import the component and it's styles

###### It'll be the global component Popup

```js
import 'dgtek-popup'
import 'dgtek-popup/dist/dgtek-popup.css'
```

### Node.js

```js
const Popup = require('dgtek-popup')
const PopupStyles = require('dgtek-popup/dist/dgtek-popup.css')
```

## Usage

###### Success (form has been submitted)
```html
<Popup type="success" :opened="popupOpened" />
```
###### Error (contact form error)
```html
<Popup type="error" :opened="popupOpened" />
```
###### Disabled (contact form submission is disabled)
```html
<Popup type="disabled" :opened="popupOpened" />
```
###### Any other message

You can send any info to component Popup through the prop `data`
```html
<Popup :data="popupContent" :opened="popupOpened" />
```
where
```js
popupContent: {
  header: '...',
  color: '#000',
  text: '...'
}
```

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