<update>
In a stream event, sends its content into another element by id; elsewhere it is a plain block.
<column style="w-full gap-8">
<block id="score"
style="w-full p-16 rounded-xl border border-gray-300 dark:border-gray-700">
<text style="font-semibold">Arsenal 1 – 0 Chelsea</text>
</block>
<update target="#score"
swap="inner">
<text style="muted">Next event: Arsenal 2 – 0 Chelsea, 67'</text>
</update>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
swap |
How it goes in. inner, outer, before, after |
inner |
target |
The element it updates (#id). 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.