(defcomp
  ()
  (div
    (~tw :tokens "space-y-3")
    (button
      :sx-get "/sx/(geography.(hypermedia.(reference.(api.flaky))))"
      :sx-target "#ref-retry-result"
      :sx-swap "innerHTML"
      :sx-retry "true"
      (~tw :tokens "px-4 py-2 bg-violet-600 text-white rounded text-sm hover:bg-violet-700")
      "Call flaky endpoint")
    (div
      :id "ref-retry-result"
      (~tw :tokens "p-3 rounded bg-stone-100 text-stone-400 text-sm")
      "This endpoint fails 2 out of 3 times. sx-retry retries automatically.")))
