A popup that opens on top of the entire page.
Usage guidelines
- Dialog doesn't support gestures: Use Drawer when you need gestures or snap points. A panel that slides in from the edge of the screen and doesn't need gestures is a positioned Dialog.
Anatomy
Import the primitives and assemble the parts:
@using Blazix.Primitives
<DialogRoot>
<DialogTrigger />
<DialogPortal>
<DialogBackdrop />
<DialogViewport>
<DialogPopup>
<DialogTitle />
<DialogDescription />
<DialogClose />
</DialogPopup>
</DialogViewport>
</DialogPortal>
</DialogRoot>API Reference
DialogRoot
Doesn't render its own HTML element.
DialogTrigger
Renders a <button> element.
Other attributes are passed to the element it renders.
DialogPortal
Doesn't render its own HTML element.
DialogBackdrop
Renders a <div> element.
Other attributes are passed to the element it renders.
DialogPopup
Renders a <div> element.
Other attributes are passed to the element it renders.
DialogTitle
Renders a <h2> element.
Other attributes are passed to the element it renders.
DialogDescription
Renders a <p> element.
Other attributes are passed to the element it renders.
DialogClose
Renders a <button> element.
Other attributes are passed to the element it renders.
DialogViewport
Renders a <div> element.
Other attributes are passed to the element it renders.