ESidebar Sidebar
import EUI 1.0
Examples
Sidebar navigation
Edit text, properties, or events, then select Run.
Icon collapse
Edit text, properties, or events, then select Run.
Expand on hover
Edit text, properties, or events, then select Run.
Floating variant
Edit text, properties, or events, then select Run.
Offcanvas navigation
Edit text, properties, or events, then select Run.
Properties
contentaliasContent slot; declare QML child objects directly inside the component.
extraContent.datamodelvarComponent data source; item structure follows the current example and component contract.
[]openboolWhether the sidebar is open.
truetitlestringTitle text.
""modestringCollapse mode: icon or offcanvas.
open / save / folder
"icon"overlayboolForce overlay drawer mode.
falsesidestringSidebar side: left or right.
"left"breakpointrealWindow width threshold for responsive drawer mode.
768collapsedboolWhether the panel is collapsed.
falseresponsiveboolUse a drawer automatically below breakpoint.
truecollapsedWidthrealCollapsed icon sidebar width.
64currentIndexstringIndex of the current selected or displayed item.
-1: no selection
0 and above: item index
""expandedWidthrealExpanded sidebar width.
240openOnHoverboolExpand the sidebar on hover and collapse on exit.
falsecloseOnSelectboolClose overlay navigation after selecting an entry.
truevariantstringSidebar appearance: sidebar, floating or inset.
"text" / "circle""button" / "image""caption" / "h1""h3"
"sidebar"footerComponentComponentComponent slot for custom footer; null uses the default content. See this page’s examples for delegate context.
nullheaderComponentComponentSidebar header replacing the default title and collapse button.
nulliconModeboolRead onlyWhether collapsed icon-only mode is active.
!overlayMode && collapsed && mode === "icon"overlayModeboolRead onlyWhether navigation currently uses an overlay drawer.
Show default value
overlay || mode === "offcanvas" || responsive && Window.window !== null && Window.window.width < breakpointSignals
selected(string index, var item)Emitted when a sidebar item is selected; index identifies it and item is its data.
Methods
toggle()Toggle the expanded or selected state; pass the target identifier when required.