(defcomp
  ()
  (~examples/page-content
    :title "Polling"
    :description "Use sx-trigger with \"every\" to poll the server at regular intervals."
    :demo-description "This div polls the server every 2 seconds."
    :demo (~examples/polling-demo)
    :sx-code "(div\n  :sx-get \"/sx/(geography.(hypermedia.(example.(api.poll))))\"\n  :sx-trigger \"load, every 2s\"\n  :sx-swap \"innerHTML\"\n  \"Loading...\")"
    :handler-names (list "ex-poll")
    :comp-placeholder-id "poll-comp"
    :wire-placeholder-id "poll-wire"
    :wire-note "Updates every 2 seconds — watch the time and count change."))
