(defcomp
  ()
  (div
    (~tw :tokens "space-y-3")
    (button
      :sx-on:click "document.getElementById('ref-on-result').textContent = 'Clicked at ' + new Date().toLocaleTimeString()"
      (~tw :tokens "px-4 py-2 bg-violet-600 text-white rounded text-sm hover:bg-violet-700")
      "Click me")
    (div
      :id "ref-on-result"
      (~tw :tokens "p-3 rounded bg-stone-100 text-stone-400 text-sm")
      "Click the button — runs JavaScript, no server request.")))
