Primary site navigation
The mainnav is the top-level wayfinding component — it gives users a clear view of the site's main sections from any page.
This component is the primary means that your users will use to navigate through your portal.
The mainnav is the top-level wayfinding component — it gives users a clear view of the site's main sections from any page.
The logo slot ties navigation to the service brand, so users always know which product they're in, even when they navigate deep into the site.
The navigation collapses into a mobile-friendly menu at smaller breakpoints, and keyboard navigation is fully supported out of the box.
The main navigation provides top-level wayfinding with a brand logo, nav items, and an end slot for utility controls.
Component tokens are specific to each component. Use the table title as the prefix: padding-md under sgds/mainnav means sgds/mainnav/padding-md.
sgds/padding/mdsgds/padding/smsgds/gap/xlsgds/gap/xssgds/border-color-translucentsgds/border-width/1sgds/border-width/4sgds/color-defaultsgds/link-color-defaultsgds/link-color-emphasissgds/surface-defaultsgds/bg-translucent-subtlesgds/primary/border-color/defaultsgds/primary/color/defaultsgds/opacity/50Short, specific labels and a clear current state help users move through the interface with confidence.
Repeated or unnecessary navigation patterns make it harder to understand where to go next.
TabShift+TabEnterSpaceShare them with us on
Report it on GitHub
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.