Modal dialog component

This example uses the native <dialog> element. The modal is closed by default. Activate the trigger button to open it.