(defcomp
  ()
  (~examples/page-content
    :title "Reset on Submit"
    :description "Use sx-on:afterSwap=\"this.reset()\" to clear form inputs after a successful submission."
    :demo-description "Submit a message — the input resets after each send."
    :demo (~examples/reset-on-submit-demo)
    :sx-code "(form :id \"reset-form\"\n  :sx-post \"/sx/(geography.(hypermedia.(example.(api.reset-submit))))\"\n  :sx-target \"#reset-result\"\n  :sx-swap \"innerHTML\"\n  :sx-on:afterSwap \"this.reset()\"\n  (input :type \"text\" :name \"message\")\n  (button :type \"submit\" \"Send\"))"
    :handler-names (list "ex-reset-submit")
    :comp-placeholder-id "reset-comp"
    :wire-placeholder-id "reset-wire"))
