Sidebar

Also called side navigation, sidenav, or navigation rail

A vertical panel along the side of an app that holds the main navigation, often collapsible to a slim strip of icons.

What is Sidebar?

Most dashboards, admin panels, and productivity apps put navigation in a sidebar on the left: a list of sections with an icon and a label each, the current one highlighted, and the account or settings menu at the bottom. A sidebar fits more items than a top bar and shows the structure of the whole app at a glance.

A collapsible sidebar shrinks to an icon-only rail, about 56 to 64px wide, to give the content more room. Show each label as a tooltip while it is collapsed, remember the choice between visits, and keep the toggle button in the same spot in both states so people can find it again.

On phones there is no room for a permanent panel, so the sidebar usually becomes a drawer that opens from a menu button, or a bottom tab bar. Animating the width directly makes the browser recalculate the page layout on every frame; a layout animation such as Motion’s layout prop gets the same effect with transforms.

Often confused with

Drawer
A drawer slides over the page when opened and closes again. A sidebar is a lasting part of the layout that sits beside the content.
All terms

Drawer

A panel that slides in from the edge of the screen, usually the bottom on phones or the side on desktop, to show extra content or options.

Layout animation

An animation that smoothly moves and resizes elements when the layout changes, such as list items gliding to new spots after a sort or filter.

Split screen

A layout that divides the screen into two side-by-side panels, each with its own content, sometimes with a divider you drag to resize.

Responsive design

Designing one layout that adapts to any screen width, rearranging columns, sizes, and navigation at set widths called breakpoints.