<tap-tabbar>
Bottom tab bar. Driven by items / value; emits change when selection changes.
Example
Loading...
<tap-tabbar
.value=${"home"}
.items=${ [ { "label": "Home", "value": "home", "icon": icons.menu }, { "label": "Edit", "value": "edit", "icon": icons.compose, "badge": 3 }, { "label": "Settings", "path": "/settings", "pattern": "/settings", "icon": icons.tune }, { "label": "More", "value": "more", "icon": icons.close, "badge": true } ] }
@change=${(evt) => (evt.target.value = evt.detail)}></tap-tabbar>
Items with path / route render as <tap-active-link> and navigate via history. Other items use value and emit change.
API
Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
items |
Yes | TabbarItem[] |
value |
Yes | string | number |
change |
Emitter<string | number> |
Other
| Type | Value |
|---|---|
| Event | change |
