Zazz Design Framework
Components

Dialog

Native dialog modals driven by the Invoker Commands API, with no JavaScript to wire up.

Dialogs use a native <dialog class="dialog">. Open one from any button with command="show-modal" and commandfor="<id>", and close with command="close". Add closedby="any" for light-dismiss. Size with data-size.

Default

Loading components…

With a form

Loading components…

Alert

Loading components…

API

AttributeWhereValues
commandtriggershow-modal, close
commandfortriggerid of the <dialog>
data-size.dialogarticle, container, screen
closedby<dialog>any, closerequest, none

On this page