<tab>
One pane of a tab bar: a label or icon in the bar, and content built the first time it is shown.
<tab-bar label-color="teal-600"
indicator-color="teal-600">
<tab label="Upcoming"
icon="event">
<column style="p-16 gap-8">
<text style="font-semibold">Jazz night at Blue Room</text>
<text style="muted">Friday, 21:00</text>
</column>
</tab>
<tab label="Past"
icon="history">
<text style="p-16">No past events</text>
</tab>
</tab-bar>
Attributes
| Name | What it does | Default |
|---|---|---|
icon |
Optional tab icon (supports active: prefix modifier) string |
|
label |
Tab label in TabBar 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.