v1.2.0

Bottom Navigation

Bottom navigation bars allow movement between primary destinations in an app.

Basic

<me-bottom-navigation value="recents"> <me-bottom-nav-action value="recents" label="Recents"> <svg slot="icon" ...>...</svg> </me-bottom-nav-action> <me-bottom-nav-action value="favorites" label="Favorites"> <svg slot="icon" ...>...</svg> </me-bottom-nav-action> <me-bottom-nav-action value="nearby" label="Nearby"> <svg slot="icon" ...>...</svg> </me-bottom-nav-action> </me-bottom-navigation>

Show Labels

With Disabled Action

API — Bottom Navigation

Attribute / PropertyTypeDefaultDescription
valuestringValue of the currently selected action.
show-labelsbooleanfalseShow labels on all actions, not just the selected one.

API — Bottom Nav Action

AttributeTypeDefaultDescription
valuestringValue passed to the parent on selection.
labelstringText label displayed below the icon.
disabledbooleanfalseDisables the action.
selectedbooleanfalseWhether this action is currently selected (managed by parent).

Slots — Bottom Nav Action

SlotDescription
iconIcon element displayed above the label.

Events

EventDetailDescription
me-change{ value }Fired on the Bottom Navigation when the selected action changes.