Skip to content

Dialog

<vox-dialog> is a modal built on the native <dialog> element — focus trapping and Escape-to-close come from the platform.

Open dialog

This removes puppet-nginx from your namespace. Published versions stay on the Forge.

CancelDelete
html
<vox-dialog id="confirm" heading="Delete module?" light-dismiss>
  <p>This removes puppet-nginx from your namespace.</p>
  <vox-button slot="footer" variant="alt">Cancel</vox-button>
  <vox-button slot="footer" variant="danger">Delete</vox-button>
</vox-dialog>

<script>
  document.getElementById('confirm').show();
</script>

API

AttributeTypeDefaultDescription
headingstring''Dialog title
openbooleanfalseVisibility (or call show() / close())
light-dismissbooleanfalseClose on backdrop click
SlotDescription
(default)Dialog body
footerAction buttons

Fires vox-close when closed.

Released under the Apache-2.0 License.