<styles>
Declares named style aliases: each attribute becomes a style token that expands to its value.
<column style="w-full gap-12">
<styles card="w-full p-16 rounded-xl border border-gray-300 dark:border-gray-700 gap-4"
price="font-xl font-bold text-teal-600"/>
<column style="card">
<text style="font-semibold">Espresso beans, 1 kg</text>
<text style="price">$24.00</text>
</column>
<column style="card">
<text style="font-semibold">Pour-over kettle</text>
<text style="price">$59.00</text>
</column>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
reset |
true clears every style alias declared so far (built-ins stay) before this tag adds its own. boolean |
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.