A sidebar provides app-level navigation and quick access to users’ favorite or pinned contents. The sidebar is useful if you expect a user to switch between app-level destinations frequently. This component is only available on regular width. If you need app-level navigation on compact width, use a tab bar instead.
Example of a sidebar on regular width
The primary column contains the sidebar. The sidebar contains a header, a list, a footer, and a vertical divider.
B. Destination List
D. Default cell
E. Active Cell
F. Outlined Group
G. Vertical Divider
The width of the primary column is flexible. The default width is set to 320px.
- Icon: Icons are optional. Icons supplement labels as indicators of a destination.
- Label: Keep text labels concise. When a text label extends beyond the primary column width, instead of shrinking or wrapping it, truncate it.
- Right accessories: Right accessories are optional; numbers or any icon button can be added here. Within an outlined group, don’t mix number and icon button or different icon buttons.
Related destinations can be grouped together. Grouped items have a heading as a group name.
The current screen is selected and represented with an active state. When the app is first opened, the landing screen, Overview in this example, is an active state by default. Only one cell in the sidebar can be activated at a time.
Destinations in a same category can be grouped together as an outlined group. An outlined group has a header and the list of destinations. The header contains the group name and the chevron. Tapping on a header opens or collapses the destination list below the header.
Collapsing and Opening
In landscape mode, the sidebar is visible by default. To create more room for their content, the sidebar can be collapsed by the toggle icon on the top left corner. The user can open the sidebar again by using the built-in edge swipe gesture.
In portrait mode, the sidebar is open by default as an overlay. The sidebar can be collapsed by tapping outside of view. The user can open the sidebar again by the built-in edge swipe gesture.
Collapsing and opening the sidebar
In compact mode the sidebar is replaced with a tab bar or a preview table view.
Tab bar in compact width (left) and sidebar in regular width (right)
A tab bar can contain up to five destination items. If there are more than five destinations in the sidebar, the last tab can be used to access the other destinations.
For apps that don’t have deep navigation, the “Back” button in the navigation bar can be used to access the full destination list.