# Dialog Native HTML `` element with open/close animations. No JavaScript required when using HTML invokers. ## Basic Example ```html

You can put anything in a dialog.

``` ## How It Works - `commandfor` points to the dialog's `id` - `command="show-modal"` opens the dialog as a modal - `command="close"` closes the dialog - No JavaScript needed for basic open/close ## Close Button The `.close` class creates a circular red button. When inside a ``, it's automatically positioned in the top-right corner. ```html ``` ## Styling Details - `max-width: 40ch` - Character-based width for good proportions - Dark backdrop overlay - Smooth scale/opacity animation on open/close - Works in light and dark themes automatically ## See Also - [Confirm dialog](https://graffiti-ui.com/llms/confirm-dialog.txt) - Dialog with action buttons