Navigate long pages without scrolling
A table of contents gives users direct links to every section on the page, so they can jump to what's relevant without reading from the top.
Tables of contents provide a page overview and direct access to specific sections.
A table of contents gives users direct links to every section on the page, so they can jump to what's relevant without reading from the top.
Seeing all the headings together helps users assess whether a page is relevant to them before they commit to reading it.
A sticky table of contents keeps navigation within reach as users move through content — especially useful on documentation or policy pages.
Container
Header
Contents list
The table of contents renders a list of named anchor links for jumping to sections on the same page.
Renders anchor links to all sections on the page. Use on long documentation or content pages where users need quick access to specific sections without scrolling.
Component tokens are specific to each component. Use the table title as the prefix: padding-none under sgds/table-of-contents means sgds/table-of-contents/padding-none.
sgds/padding/nonesgds/gap/mdsgds/gap/xlsgds/font-size/24sgds/font-weight/semiboldsgds/margin/noneUse structured navigation or comparison only when it helps users move through results with less effort.
Extra pagination or tabular structure slows users down when the content could stay simple.
TabShift+TabEnterShare 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.