<option>
One choice in a select list, with the value it stands for.
<column style="gap-8 w-full">
<select id="size"
name="size">
<option value="s">Small</option>
<option value="m"
selected="true">Medium</option>
<option value="l">Large</option>
</select>
<text @text="'Size: ' + #size.label"></text>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
selected |
Initially selected boolean |
false |
value |
Option value; without it, the option is worth its text (as in HTML). string |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.