package examples import "github.com/Tend-Stack/GothUI/v2026/components" templ ExampleDialog() { @components.Button(components.ButtonProps{Text: "Open the sample dialog", CommandFor: "sample-dialog", Command: components.DialogShowModal})

If native invoker commands are unavailable, use the ordinary-page example.

@components.Dialog(components.DialogProps{ID: "sample-dialog", Title: "A focused moment", Description: "The browser manages modal focus and dismissal."}) {

Press Escape or use Close. Nothing is saved or changed.

} }