(defcomp
  ()
  (~examples/page-content
    :title "Dialogs"
    :description "Open a modal dialog by swapping in the dialog component. Close by swapping in empty content. Pure sx — no JavaScript library needed."
    :demo-description "Click to open a modal dialog."
    :demo (~examples/dialogs-demo)
    :sx-code "(button\n  :sx-get \"/sx/(geography.(hypermedia.(example.(api.dialog))))\"\n  :sx-target \"#dialog-container\"\n  :sx-swap \"innerHTML\"\n  \"Open Dialog\")\n\n;; Dialog closes by swapping empty content\n(button\n  :sx-get \"/sx/(geography.(hypermedia.(example.(api.dialog-close))))\"\n  :sx-target \"#dialog-container\"\n  :sx-swap \"innerHTML\"\n  \"Close\")"
    :handler-names (list "ex-dialog" "ex-dialog-close")
    :comp-placeholder-id "dialog-comp"
    :wire-placeholder-id "dialog-wire"))
