X Enterprises
Layout

LayoutMobileSidebar

Slide-over sidebar for mobile viewports, backed by USlideover.

LayoutMobileSidebar

Mobile slide-over sidebar driven by USlideover. Renders brand header, nav items, and optional footer items. Closes automatically on navigation when closeOnNavigate is true. Integrates with useXNavigation automatically.

Components

<XALayoutMobileSidebar />

Mobile slide-over sidebar driven by USlideover. Renders brand header, nav items, and optional footer items. Closes automatically on navigation when closeOnNavigate is true.

<XALayoutMobileSidebar
  v-model:open="mobileOpen"
  :items="navItems"
  color="primary"
  close-on-navigate
/>

Props

PropTypeDefaultDescription
openBooleanfalseControls slide-over visibility
itemsArrayundefinedNavigation items
footerItemsArrayundefinedFooter navigation items
brandObjectundefinedBrand config: { title, logo, to }
closeOnNavigateBooleantrueClose on route change
useNavigationBooleantrueMerge config from useXNavigation composable
colorString'primary'Active item color
textModeString'dark'Text color mode: 'light' or 'dark'

AI Context

component: XALayoutMobileSidebar
package: "@xenterprises/nuxt-x-app"
auto-import: true
prefix: XA
use-when: Mobile drawer navigation; XALayout composes this automatically — use directly only when building a custom mobile navigation solution
patterns:
  - Use v-model:open to toggle the slide-over from a hamburger button.
  - closeOnNavigate defaults to true — the drawer closes automatically on route change.
Copyright © 2026