Keep app navigation visible
Use a sidebar for product areas that users move between often.
Use a sidebar for product areas that users move between often.
Sections and groups keep complex navigation easier to scan.
Use the collapsed state when dense pages need more horizontal room.
Level 1 sidebar
Collapsible icon
Level 2 sidebar (optional)
Scrim (optional)
Slot content (optional)
Side bar menus
Slot content (optional)
Choose a sidebar variant based on how much space the layout can reserve for navigation.
Use when users can expand or collapse the sidebar while staying in the same workspace.
Compare expanded and icon-only states. Below 768px, collapsible sidebars use overlay mode, where collapsing hides the panel instead of showing a rail.
Use expanded sidebars when labels should stay visible.
Set the sidebar active value to an item’s name to highlight the current page or section.
Use active to orient users in the current navigation.
Scrim dims the content behind an open overlay sidebar or drawer. Below 512px, the component hides the scrim and uses a full-width sidebar.
The scrim dims the content behind the open sidebar. It is hidden below 512px.
Sidebar supports upper and lower slots for fixed content around the navigation list.
Use the upper slot for branding and the lower slot for supporting actions, such as help and support.
Each row is a colour, spacing, or size value the component uses, and the right-most column tells you where in the component you'll see it.
sgds-dimension-288288pxsgds-dimension-7272pxsgds-padding-lg20pxsgds-padding-xs8pxsgds-gap-md16pxsgds-gap-xs8pxsgds-border-radius-md8pxsgds-dimension-22pxsgds-border-radius-xs—sgds-border-width-11pxsgds-dimension-0—sgds-dimension-256256pxsgds-gap-2-xs4pxsgds-icon-size-sm—sgds-line-height-20Height variessgds-margin-2-xl—sgds-margin-md—sgds-motion-duration-slow—sgds-padding-md16pxsgds-padding-sm—sgds-outline-focus—sgds-outline-offset-focus—sgds-z-index-sticky200sgds-motion-duration-standard300mssgds-motion-easing-standardcubic-bezier(0.25, 0, 0.25, 1)sgds-dimension-4040pxsgds-icon-size-md20pxsgds-font-size-label-sm14pxsgds-font-size-label-xs12pxsgds-line-height-2-xs20pxsgds-padding-2-xs4pxsgds-padding-3-xs2pxsgds-margin-lg20pxUse clear section headings to separate areas such as everyday work and administration.
Place destinations under headings that match their purpose, so users know where to find them.
title or name.ariaLabel to distinguish the sidebar from other navigation regions.title and unique name. Keep the active value aligned with the current page; the component does not set aria-current or aria-selected on item controls.TabShift+TabEnterorSpace→ Right← LeftShare them with us on Slack → #ask-sgds-v3
Report it on GitHub Issues
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.