
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@pnx-mixtape/dialog
Advanced tools
Documentation and examples: CTA
npm install @pnx-mixtape/dialog --save-dev
CSS
@import '@pnx-mixtape/dialog';@import url('dist/dialog.css');<link href="dist/dialog.css" rel="stylesheet" type="text/css">Web Components
Web Components are self defined, simply import the desired feature. These do not use the Shadow DOM. External CSS applies.
import '@pnx-mixtape/dialog/DialogBase'; and be sure to include <mx-dialog> around the <dialog /> tag.aria-controls="[id]" or href="#[id]" where the ID matches the dialog (required).[data-modal] attribute to trigger HTMLDialogElement.showModal() on open. When omitted HTMLDialogElement.show() is used.[data-close] to any button that should call HTMLDialogElement.close()<button aria-controls="example-dialog" class="button button--primary">
Dialog trigger
</button>
<mx-dialog id="example-dialog" data-modal>
<dialog class="dialog">
<button
autofocus
class="button button--icon-only button--secondary icon icon--close"
data-close
>
Close dialog
</button>
<div class="dialog__content">
<h2>Title</h2>
<p>Body content.</p>
</div>
</dialog>
</mx-dialog>
See twig files for all HTML examples.
Vanilla JS (to be deprecated)
import Dialog from '@pnx-mixtape/dialog';<script src="dist/dialog.js" type="text/javascript"></script>HTML
<button
data-dialog
aria-controls="example-dialog"
class="button button--primary"
>
Dialog trigger
</button>
<dialog class="dialog" id="example-dialog">
<div class="dialog__content">
<h2>Title</h2>
<p>Body content.</p>
</div>
</dialog>
FAQs
dialog component
The npm package @pnx-mixtape/dialog receives a total of 149 weekly downloads. As such, @pnx-mixtape/dialog popularity was classified as not popular.
We found that @pnx-mixtape/dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.