Alert Dialog
A dialog that requires a user response to proceed.
Anatomy
Import the primitives and assemble the parts:
@using Blazix.Primitives
<AlertDialogRoot>
<AlertDialogTrigger />
<AlertDialogPortal>
<AlertDialogBackdrop />
<AlertDialogViewport>
<AlertDialogPopup>
<AlertDialogTitle />
<AlertDialogDescription />
<AlertDialogClose />
</AlertDialogPopup>
</AlertDialogViewport>
</AlertDialogPortal>
</AlertDialogRoot>API Reference
AlertDialogRoot
Doesn't render its own HTML element.
AlertDialogTrigger
Renders a <button> element.
Other attributes are passed to the element it renders.
AlertDialogPortal
Doesn't render its own HTML element.
AlertDialogBackdrop
Renders a <div> element.
Other attributes are passed to the element it renders.
AlertDialogPopup
Renders a <div> element.
Other attributes are passed to the element it renders.
AlertDialogTitle
Renders a <h2> element.
Other attributes are passed to the element it renders.
AlertDialogDescription
Renders a <p> element.
Other attributes are passed to the element it renders.
AlertDialogClose
Renders a <button> element.
Other attributes are passed to the element it renders.
AlertDialogViewport
Renders a <div> element.
Other attributes are passed to the element it renders.