Use the jha-question component to ask a simple question that has a limited set of answers. It displays a dialog box at larger screen sizes and a slide up at phone size. You can test this out by sizing the window larger and smaller.
Use the jha-dialog-box component for a dialog box more complex than a simple question. Consider using stacked views for more complex dialog scenarios.
If you switch off the toggle below, you won't be able to press any of the buttons to close the dialog, but if you press Escape it will close after 3 seconds.