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.
layouts/default.vue
<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: collapsed starts it as a rail that expands on hover; horizontal and phones make it temporary.
  • menu: semi-dark applies the sidebar theme, so pieces inside it must read the local theme.
  • The footer shows SIDEBAR_FOOTER_LINKS from config/sidebar-links.config.ts as rows like the menu ones, or your own #footer slot. href links open in a new tab with an external-link icon; highlight: true paints 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).

© 2026 melsami UI.
Developer documentation for melsami UI.