v-bottom-navigation component is an alternative to the sidebar. It is primarily used for mobile applications and comes in three variants, icons and text, and shift.
v-bottom navigation is meant to be used with vue-router, you can also programmatically control the active state of the buttons by using the value property. A button is given a default value of its index with
|v-btn||Sub-component used for modifying the |
The color prop applies a color to the background of the bottom navigation. We recommend using the light and dark props to properly contrast text color.
Using the grow property forces v-btn components to fill all available space. Buttons have a maximum width of 168px per the Bottom Navigation MD specification.
Adjust the style of buttons and icons by using the horizontal prop. This positions button text inline with the provided v-icon.
The shift prop hides button text when not active. This provides an alternative visual style to the
For this to work,
v-btn text is required to be wrapped in a
The display state of
v-bottom-navigation can be toggled using the input-value prop. You can also control the currently active button using v-model.