Skip to content

SidebarContent (ue-sidebar-content) ​

SidebarContent is an internal wrapper that sits between Sidebar and SidebarDrawerContent. Its responsibilities are:

  1. Rendering the drawer — passes all sidebar state props down to ue-sidebar-drawer-content.
  2. Resize handle — adds an 8 px drag strip between the drawer and the main content area so users can resize the sidebar width.
  3. Secondary / content drawers — conditionally mounts additional v-navigation-drawer instances when options.contentDrawer or secondaryOptions are configured.

NOTE

This is an internal component. You do not use it directly.

Resize handle ​

The resize handle is only shown when all of these are true:

  • Sidebar is not in rail mode (!rail)
  • Sidebar is open (status === true)
  • Not in temporary (overlay) mode (!effectiveTemporary)
  • Screen is desktop size ($vuetify.display.lgAndUp)

The handle is 8 px wide and uses cursor: col-resize. It highlights in rgba(primary, 0.4) on hover or while dragging. Dragging emits resize-start with the mousedown event, which is handled by useSidebar.

The handle's left (or right in right-to-left layouts) position tracks the current drawer width in px:

left: {width}px   (ltr sidebar)
right: {width}px  (rtl sidebar, sidebarLocation === 'right')

Secondary drawers ​

Two optional v-navigation-drawer instances are mounted when their configuration objects exist:

ConditionDescription
options.contentDrawer?.existsA content-panel drawer, max-width 15%, location driven by options.location
secondaryOptions?.existsA secondary navigation drawer at secondaryOptions.location

Both are pass-through — their content is not managed by this component.

Props ​

PropTypeRequiredDescription
itemsArrayYesForwarded to ue-sidebar-drawer-content
profileMenuArrayNoForwarded to ue-sidebar-drawer-content
miniSymbolString|ObjectNoForwarded to ue-sidebar-drawer-content
profileMenuOpenBooleanNoTwo-way bound with ue-sidebar-drawer-content
statusBooleanYesDrawer open/closed state
railBooleanYesRail (icon-only) mode
isHoverableBooleanYesVuetify expand-on-hover
hideIconsBooleanYesText-only navigation mode
optionsObjectYesSidebar config object (location, railWidth, contentDrawer, etc.)
widthNumber|StringYesDrawer width in px
effectivePersistentBooleanYesVuetify persistent prop
effectivePermanentBooleanYesVuetify permanent prop
effectiveTemporaryBooleanNoVuetify temporary (overlay) prop
railManualBooleanYesWhether rail was set manually by the user
secondaryOptionsObjectNoConfig for the secondary drawer
isResizingBooleanNoAdds ue-sidebar-resize-active class to the handle
sidebarLocationStringNo'left' or 'right'; controls handle position

Emits ​

EventDescription
update:statusForwarded from ue-sidebar-drawer-content
update:profileMenuOpenForwarded from ue-sidebar-drawer-content
activate-menuForwarded from ue-sidebar-drawer-content
rail-toggleForwarded from ue-sidebar-drawer-content
resize-startEmitted on resize handle mousedown

Slots ​

SlotDescription
bottomPassed through to ue-sidebar-drawer-content