Use a dialog only for a focused task
A modal interrupts the rest of the page, so it should have a strong reason to do so. Put routine navigation or a promotional message in the page instead. A visual overlay does not implement accessible dialog behavior on its own.
Use the generator to establish the appearance, then adapt the exported markup and styles to your application. A preview demonstrates the visual treatment; it does not certify your final interaction. Check the implementation with real content, a narrow screen, and keyboard input before publishing.
Try the component in the code editor →