Layout
AppSidebar
The navigation drawer of the app: brand, menu from useNavigation(), rail mode, semi-dark theme and footer links.
components/layout/AppSidebar/AppSidebar.vue
View in the demo
This piece is part of the app shell, so it is not rendered inside these docs. Open the demo to see it working; the code below shows how the default layout uses it.
<v-app>
<AppSidebar />
<AppNavBar />
<v-main>…</v-main>
</v-app>
How it behaves
- Items come from
useNavigation(), already filtered by permissions. - The open group follows the current route; groups are highlighted only when a child is active.
layout: collapsedstarts it as a rail that expands on hover;horizontaland phones make it temporary.menu: semi-darkapplies thesidebartheme, so pieces inside it must read the local theme.- The footer shows
SIDEBAR_FOOTER_LINKSfromconfig/sidebar-links.config.tsas rows like the menu ones, or your own#footerslot.hreflinks open in a new tab with an external-link icon;highlight: truepaints a link in the primary colour with an arrow (the demo uses it for the buy link).
API
Slots
Name | Slot props | Description |
|---|---|---|
#footer | — | Replaces the footer links. |
Its open and rail state live in useSidebar() (openNav, collapseNavValue).