GC Design System Components Installation Page templates Contact us Get involved Find a demo GC Design System Components

Top navigation
<gcds-top-nav>

Also called: site menu, navigation, navbar.

A top navigation is a horizontal list of page links.

Top navigation component preview

Top navigation anatomy – on desktop

  1. The home nav link identifies the site using text or a logo and it links to the home page. It uses a nav link that is added within the home slot.
  2. The nav link is a link to a popular page or section on the site. Nav links can be in the top level if they're standalone.
  3. The nav group can be collapsed and expanded and generally contains a list of 2-5 links.
  4. The nav group label describes the category of links in that group. It acts as a button to expand and collapse the group of links.
  5. The nav group chevron icon points up when the nav group is collapsed and down when it's expanded.
  6. The nav link with active indicator gives visual prominence to the current page.
Top navigation anatomy showing page navigation with a dark blue box for the logo or home link followed by two greyed boxes, the last one having a dark blue line underneath to show the current page.

Design and accessibility for top navigation

Note: On mobile, the home nav link does not link to the homepage.

Tip: Read top navigation link text aloud in sequence to note similarities in how link text sounds when read by an assistive device.

Add navigation groups to the top navigation

Help us improve

Have questions or a request? Give feedback on our contact form.

Something's wrong? Raise it through GitHub with an account. You'll have access to the team's direct responses, progress made on your issue, and issues raised by others.

Give feedback Report an issue on GitHub
2024-12-11