A reusable dialog or modal window with a customizable interface and functionality.
A dialog should popup either in response to user action or to get the users attention.
The dialog can be shown either as a modal or non-modal dialog. Modal is recommended for most uses.
To show the dialog, call showModal() or show() method:
Invoked on each update to perform rendering tasks. This method may return
any value renderable by lit-html's ChildPart - typically a
TemplateResult. Setting properties inside this method will not trigger
the element to update.
A reusable dialog or modal window with a customizable interface and functionality.
A dialog should popup either in response to user action or to get the users attention.
The dialog can be shown either as a modal or non-modal dialog. Modal is recommended for most uses. To show the dialog, call
showModal()
orshow()
method:When shown as a modal, clicking the background barrier will close the modal by default; this can be changed with the
closeOnBarrierClicked
property.Slot
Slot
icon - A
zeta-icon
element. Size will be restricted based on dialog type.Slot
confirm - Button used in footer. Must be of type zeta-button.
Slot
cancel - Button used in footer. Must be of type zeta-button.
Slot
other - Button used in footer. Must be of type zeta-button.
Part
body - Styles the dialog body
Part
footer - Styles the dialog footer
Part
header - Styles the dialog header
Cssproperty
--dialog-max-width - Max width of the dialog. Defaults to 480px.
Cssproperty
--dialog-max-height - Max height of the dialog. Defaults to 80vh.
Figma
https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/🦓-ZDS---Components?node-id=229-14&node-type=canvas&m=dev
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-dialog--docs