npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ember-a11y-dialog

v12.0.0

Published

Ember 3.28 wrapper for a11y-dialog using in-element for portals

Downloads

574

Readme

ember-a11y-dialog

An Ember 3.28 wrapper for a11y-dialog v8.1.5 using ember-wormhole for the portal pattern.

Installation

ember install ember-a11y-dialog

Setup

Add the wormhole destination to your application.hbs (typically at the end):

{{! app/templates/application.hbs }}
{{outlet}}
<A11yDialogWormhole />

Usage

Basic Dialog

<A11yDialogOpener @dialogId="my-dialog" class="btn">
  Open Dialog
</A11yDialogOpener>

<A11yDialog @dialogId="my-dialog" @title="Hello World">
  <p>Dialog content here.</p>
</A11yDialog>

Controlled Dialog (programmatic open/close)

<button {{on "click" this.openDialog}}>Open</button>

<A11yDialog
  @dialogId="my-dialog"
  @title="Controlled"
  @isOpen={{this.isOpen}}
  @onReady={{this.onDialogReady}}
  @onShow={{this.onShow}}
  @onHide={{this.onHide}}
>
  <p>Content</p>
</A11yDialog>

Named Blocks (custom layout)

<A11yDialog @dialogId="custom-dialog" @isOpen={{this.isOpen}} @onHide={{this.close}}>
  <:header as |h|>
    <h2 id={{h.titleId}}>Custom Title</h2>
    <button data-a11y-dialog-hide aria-label="Close">&times;</button>
  </:header>
  <:body>
    <p>Custom body content</p>
  </:body>
  <:footer>
    <button data-a11y-dialog-hide>Cancel</button>
    <button {{on "click" this.confirm}}>OK</button>
  </:footer>
</A11yDialog>

Alert Dialog

<A11yDialog
  @dialogId="confirm-delete"
  @title="Are you sure?"
  @alertDialog={{true}}
  @isOpen={{this.showConfirm}}
  @onHide={{this.cancelDelete}}
>
  <p>This cannot be undone.</p>
</A11yDialog>

Render In Place (no portal)

<A11yDialog @dialogId="inline" @title="Inline" @renderInPlace={{true}}>
  <p>No wormhole — renders inline.</p>
</A11yDialog>

API

<A11yDialog>

| Argument | Type | Default | Description | |----------|------|---------|-------------| | @dialogId | string | 'a11y-dialog' | Unique ID for the dialog element | | @title | string | — | Dialog title (used with default header) | | @isOpen | boolean | — | Controlled open state | | @alertDialog | boolean | false | Use role="alertdialog" (overlay doesn't close) | | @renderInPlace | boolean | false | Skip ember-wormhole, render inline | | @destinationId | string | 'a11y-dialog-wormhole' | Wormhole destination element ID | | @closeButtonLabel | string | 'Close dialog' | Aria label for default close button | | @class | string | — | Additional CSS class on the dialog container | | @onReady | function | — | Called with the a11y-dialog instance after setup | | @onShow | function | — | Called when dialog opens | | @onHide | function | — | Called when dialog closes |

<A11yDialogOpener>

| Argument | Type | Default | Description | |----------|------|---------|-------------| | @dialogId | string | 'a11y-dialog' | ID of dialog to open |

<A11yDialogWormhole>

| Argument | Type | Default | Description | |----------|------|---------|-------------| | @destinationId | string | 'a11y-dialog-wormhole' | ID of the wormhole destination div |

Playground

A standalone Vite playground is available for quick testing of the dialog patterns:

cd playground
nvm use 22
npm install
npm run dev

Compatibility

  • Ember.js 3.28+
  • Node.js 14+ (16+ for playground)
  • a11y-dialog 8.1.5
  • ember-wormhole 0.6.x