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>
This commit is contained in:
17
sx/sxc/examples/delete-demo.sx
Normal file
17
sx/sxc/examples/delete-demo.sx
Normal file
@@ -0,0 +1,17 @@
|
||||
(defcomp
|
||||
(&key items)
|
||||
(div
|
||||
(table
|
||||
(~tw :tokens "w-full text-left text-sm")
|
||||
(thead
|
||||
(tr
|
||||
(~tw :tokens "border-b border-stone-200")
|
||||
(th (~tw :tokens "px-3 py-2 font-medium text-stone-600") "Item")
|
||||
(th (~tw :tokens "px-3 py-2 font-medium text-stone-600 w-20") "")))
|
||||
(tbody
|
||||
:id "delete-rows"
|
||||
(map
|
||||
(fn
|
||||
(item)
|
||||
(~examples/delete-row :id (nth item 0) :name (nth item 1)))
|
||||
items)))))
|
||||
Reference in New Issue
Block a user