(defcomp
  (&key items)
  :affinity :server
  (div
    (~tw :tokens "max-w-3xl mx-auto px-4 py-3")
    (div
      (~tw :tokens "flex flex-wrap justify-center gap-2")
      (map
        (fn
          (item)
          (a
            :href (get item "href")
            :sx-get (get item "href")
            :sx-target "#sx-content"
            :sx-select "#sx-content"
            :sx-swap "innerHTML"
            :sx-push-url "true"
            (~tw
              :tokens "px-3 py-1.5 rounded border transition-colors text-violet-700 text-sm border-violet-200")
            (get item "label")))
        items))))
