Reference

UI elements

Every element the compiler knows, straight from src/elements.ts. All of them also take class, style, id and ref, and any DOM event with on:event.
ElementContent-> fires onPropsFlagsHTML
texttext—role animate delay duration hover tagbold muted small large danger primary success reveal stagger<span>
titletext—role animate delay duration hover tagbold muted small large danger primary success reveal stagger<h2>
buttontextclickdisabled role animate delay duration hoverprimary danger small reveal stagger<button>
inputstate to bindenterplaceholder type disabled label min max step autocomplete inputmode name role animate delay duration hoverrequired reveal stagger<input>
textareastate to bind—placeholder rows disabled label autocomplete inputmode name role animate delay duration hoverrequired reveal stagger<textarea>
selectstate to bindchangeoptions placeholder disabled label autocomplete name role animate delay duration hoverreveal stagger<select>
checkboxstate to bindchangelabel disabled role animate delay duration hoverreveal stagger<input>
radiostate to bindchangeoptions label role animate delay duration hoverreveal stagger<div>
tabsstate to bindchangeoptions label role animate delay duration hoverreveal stagger<div>
filestate to bindchangeaccept label disabled role animate delay duration hovermultiple reveal stagger<input>
modalstate to bind—gap pad align justify role animate delay duration hoverreveal stagger<dialog>
imagesource URL—alt width height loading decoding fetchpriority srcset sizes role animate delay duration hoverreveal stagger<img>
videosource URL—width height poster role animate delay duration hovercontrols autoplay loop muted reveal stagger<video>
audiosource URL—role animate delay duration hovercontrols autoplay loop muted reveal stagger<audio>
linktext—to href target role animate delay duration hovermuted bold reveal stagger<a>
badgetext—role animate delay duration hoverprimary success danger reveal stagger<span>
icontext—size label role animate delay duration hovermuted primary success danger reveal stagger<span>
spinner——role animate delay duration hoverreveal stagger<span>
divider——role animate delay duration hoverreveal stagger<hr>
row——gap pad align justify role animate delay duration hover tagwrap reveal stagger<div>
column——gap pad align justify role animate delay duration hover tagreveal stagger<div>
grid——gap pad align justify cols role animate delay duration hover tagreveal stagger<div>
card——gap pad align justify role animate delay duration hover tagreveal stagger<div>
form—submitgap pad align justify role animate delay duration hovernovalidate reveal stagger<form>
list——role animate delay duration hoverreveal stagger<ul>
itemtextclickrole animate delay duration hovermuted reveal stagger<li>
table——role animate delay duration hoverreveal stagger<table>
tr—clickrole animate delay duration hoverreveal stagger<tr>
thtext—role animate delay duration hoverreveal stagger<th>
tdtext—role animate delay duration hovermuted bold reveal stagger<td>
canvas——width height role animate delay duration hoverreveal stagger<canvas>
ArtScript
column gap=4 align=center {
  title "Users"
  input draft placeholder="Name" -> add(draft)
  button "Add" primary -> add(draft)
  for u in users key u.id {
    UserCard user=u
  }
}