Sidebars
15 app sidebars in plain HTML and CSS: one level or two, sections that fold, a rail of icons, a file tree, a calendar and a sidebar on each side.
Each one is a whole page with the sidebar in place: open it to see it at desktop, tablet and phone width, and copy its code. The current page is marked with aria-current, and sections that fold are the browser's own <details>.
Sidebar
Sidebar grouped by sectionThe base app sidebar: a wordmark, main items with a count, two labelled sections and the user at the foot. Start here for one level of navigation.Sidebar with sections that foldThe base sidebar with labelled sections that fold under their headings, one open and one closed; for when there are many sections and people use few.Sidebar with a second levelA sidebar with a second level always open under its items, such as the statuses under Orders; for a short second level used every day.Sidebar with a level that foldsA sidebar whose items fold open to show their second level, Orders open and the rest closed; for when the second level is too long to keep open.Sidebar with menusA sidebar whose items open their second level in a menu beside them, so the list stays short; for when people go straight to a page under an item.Sidebar that collapses to iconsA sidebar that a button in the top bar folds to a rail of icons with tooltips, with a workspace switcher, a meter of orders and an account menu.Inset sidebarAn inset sidebar on a grey ground, the page in one white panel: a workspace switcher, the main items, a list of recent batches and an account menu.Two sidebarsTwo sidebars: a rail of section icons beside an inbox of messages with a search and an Unread switch; for when a section is a list to pick from.Sidebar with a file treeA sidebar for files: the changed files marked as modified, added or deleted, then a tree of folders that fold, with the open file in the breadcrumb.Sidebar with a calendarA wide sidebar for a calendar: a month to pick the day, your own and the shared calendars as checkboxes in groups that fold, and a button to add one.Sidebar at the endA sidebar at the end of the page with the contents of a long guide: headings, sub-headings, the current place marked and a link back to the top.Sidebar on each sideNavigation at the start of the page and details at the end: one order's customer, items, total and next deliveries, with a button to pack it.Sidebar under a site headerA sidebar under a header that spans the whole product and holds the wordmark, the breadcrumb, a search, notifications and the account.Sidebar in a dialogA settings dialog open over the app, with a sidebar of its own: six sections down the side and the notification switches of the chosen one.Navigation in a popoverA page with no sidebar: a Menu button in the header opens the navigation in a popover; for small products or pages that need the full width.