🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@pnx-mixtape/dialog

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnx-mixtape/dialog

dialog component

Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
72
-57.4%
Maintainers
5
Weekly downloads
 
Created
Source

@pnx-mixtape/dialog

Documentation and examples: CTA

Installation

npm install @pnx-mixtape/dialog --save-dev

How to use

CSS

  • PostCSS workflow: @import '@pnx-mixtape/dialog';
  • Native CSS: @import url('dist/dialog.css');
  • Link tag: <link href="dist/dialog.css" rel="stylesheet" type="text/css">

Vanilla JS

  • ES6 import: import Dialog from '@pnx-mixtape/dialog';
  • Script tag: <script src="dist/dialog.js" type="text/javascript"></script>

HTML

<button
  data-dialog
  aria-controls="example-dialog"
  class="button button--primary"
>
  Dialog trigger
</button>

<div class="dialog\" id="example-dialog">
  <div class="dialog__content">
    <h2>Title</h2>
    <p>Body content.</p>
  </div>
</div>

FAQs

Package last updated on 14 Sep 2023

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