X Enterprises
Layout

LayoutSidebar

Collapsible desktop sidebar with brand logo, navigation, footer items, and user menu.

LayoutSidebar

The desktop sidebar panel. Supports collapsed/expanded states, collapsible toggle, custom brand, navigation items, footer items, and a user menu slot. Adapts border and text colors via textMode. Integrates with useXNavigation automatically.

Components

<XALayoutSidebar />

The desktop sidebar panel. Supports collapsed/expanded states, collapsible toggle, custom brand, navigation items, footer items, and a user menu slot. Adapts border and text colors via textMode.

<XALayoutSidebar
  v-model:collapsed="collapsed"
  :items="navItems"
  :color="'primary'"
  text-mode="light"
  collapsible
/>

Props

PropTypeDefaultDescription
collapsedBooleanundefinedControlled collapsed state
collapsibleBooleanundefinedShow the collapse toggle button
widthStringundefinedSidebar width
collapsedWidthString'64px'Width when collapsed
itemsArrayundefinedNavigation items array
footerItemsArrayundefinedFooter navigation items
brandObjectundefinedBrand config: { title, logo, to }
userObjectundefinedUser config passed to XALayoutSidebarUserMenu
positionStringSidebar position (e.g., 'right')
colorString'primary'Active item color
textModeString'dark'Text color mode: 'light' or 'dark'
mobileBooleanfalseRenders in mobile mode (shows close button)
useNavigationBooleantrueMerge config from useXNavigation composable

AI Context

component: XALayoutSidebar
package: "@xenterprises/nuxt-x-app"
auto-import: true
prefix: XA
use-when: Desktop sidebar panel; XALayout composes this automatically — use directly only when building a custom shell or embedding a sidebar in a non-standard layout
patterns:
  - Use v-model:collapsed to bind collapse state bidirectionally.
  - textMode "light" inverts text colors for dark-background sidebars.
Copyright © 2026