Examples
Each example is a single .sumi component compiled to WebAssembly and
running in a terminal below. Click into one to interact, or edit the source and
recompile it in your browser.
Counter
A signal drives the count and a derived value shows it doubled. Any key increments.
Form controls
Checkbox, radio group, and select — each wired to a signal through onchange events, with :checked and :focus styling.
Modal dialog
A dialog element that traps focus while open. Enter opens it; Tab moves between the buttons; the choice updates the status.
Todo list
A keyed {for} list with an {if} branch for the selected row. Any key moves the highlight.