This demo shows a modal dialog component (closed by default). Click the button to open it. The opener has the class "trigger".
The modal uses the native <dialog> when available and falls back to a simple ARIA modal if needed.