Socket
Book a DemoInstallSign in
Socket

dgtek-popup

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dgtek-popup

Component for npm registry

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

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

yarn add dgtek-popup

Add with script tag

<script src="https://registry.npmjs.org/dgtek-popup"></script>

Import the component and it's styles

It'll be the global component Popup
import 'dgtek-popup'
import 'dgtek-popup/dist/dgtek-popup.css'

Node.js

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

Usage

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

You can send any info to component Popup through the prop data

<Popup :data="popupContent" :opened="popupOpened" />

where

popupContent: {
  header: '...',
  color: '#000',
  text: '...'
}

Keywords

dgtek

FAQs

Package last updated on 09 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts