Switch related views
Use tabs for sections that share the same context.
Use tabs for sections that share the same context.
Visible tab labels help users see the views they can open.
Tabs change panels while keeping users in the same context.
Leading icon (optional)
Label
Active indicator
Divider (optional)
Tab variants control the visual style of the active tab indicator to suit different surface contexts.
The underlined variant marks the active tab with a bottom border. Use as the default tab style in most page and panel contexts.
Lay the tab nav horizontally above the panels or vertically beside them.
Default orientation. Tab nav runs along the top of the panels.
Disable individual tabs that are not yet available to the user.
All tabs interactive. This is the default state.
Tab density adjusts the spacing of tab items for compact or standard layouts.
Use default density for most tab groups.
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-gap-xl—sgds-border-width-11pxsgds-border-width-4Width variessgds-font-size-14—sgds-spacer-3—sgds-spacer-4—sgds-spacer-5—sgds-outline-focus—sgds-outline-offset-focus—Use tabs when each panel shows a different facet of the same object. Overview, details, history.
For steps that must be completed in order, use a stepper. Tabs imply any panel can be visited anytime.
Use short nouns or noun phrases for each view. Consistent grammar helps users scan the row quickly.
Long tab rows wrap or scroll. With more than five tabs, reorganise the content or use sidenav instead.
TabShift+TabEnterSpace← Leftor↑ Up→ Rightor↓ DownHomeEndShare them with us on Slack → #ask-sgds-v3
Report it on GitHub Issues → sgds/components/tab
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.