state: expanded Demo
component · sidebar

Sidebar with menus and submenus

Three states: expanded with inline submenus, mini with icons only and a flyout on the right, hidden fully hidden. State and open submenus are saved to localStorage.

Expanded

Labels visible. Clicking a group opens the submenu inline, with a height animation.

Mini

Icons only. The submenu appears as a flyout on the right, aligned with the item, flipping if it does not fit. Switch between hover and click from the button above.

Hidden

Zero width and inert: it can no longer receive focus. Bring it back with the topbar panel button or data-sidebar-show.

Keyboard

Enter/Space toggles the submenu. Right arrow opens, left arrow closes, Escape closes the flyout.

Persistence: the sidebar state and open submenus survive a refresh. Keys: io:sidebar:state:app-sidebar and io:sidebar:open:app-sidebar.