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.
Sidebar can collapse to a narrower state when space is limited.
Use expanded sidebars when labels should stay visible.
Use active sidebar items to show the current page or section.
Use active to orient users in the current navigation.
Scrim adds an overlay treatment for temporary sidebar states on smaller screens.
Use no scrim for persistent sidebars.
Sidebar supports upper and lower slots for fixed content around the navigation list.
Use slots for persistent header or footer content connected to the sidebar.
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-font-size-0—sgds-font-size-1—sgds-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-standard200mssgds-motion-easing-standardcubic-bezier(0.42, 0, 0.58, 1)Use sections and groups to make complex application navigation easier to scan.
Sidebar uses name values to resolve active state. Missing or duplicated names make current-page highlights unreliable.
TabShift+TabEnterSpace↓ Down↑ Up→ Right← LeftShare them with us on Slack → #ask-sgds-v3
Report it on GitHub Issues → sgds/components/sidebar
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.