Files
rose-ash/sx/sxc/reference/ref-confirm-demo.sx
giles a7da235459 SXC content: docs/examples/home/reference pages + SX testing runner
New sxc/ content tree with 120 page files across docs, examples, home,
and reference demos. sx/sx/testing/ adds page-runner.sx (317L) and
index-runner.sx (394L) — SX-native test runner pages for
browser-based evaluation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 09:08:47 +00:00

16 lines
603 B
Plaintext

(defcomp
()
(div
(~tw :tokens "space-y-2")
(div
:id "ref-confirm-item"
(~tw :tokens "flex items-center justify-between p-3 border border-stone-200 rounded")
(span (~tw :tokens "text-sm text-stone-700") "Important file.txt")
(button
:sx-delete "/sx/(geography.(hypermedia.(reference.(api.(item.confirm)))))"
:sx-target "#ref-confirm-item"
:sx-swap "delete"
:sx-confirm "Are you sure you want to delete this file?"
(~tw :tokens "px-3 py-1 text-red-500 text-sm border border-red-200 rounded hover:bg-red-50")
"Delete"))))