GC Design system Components Installation Contact us Get involved 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? Something you'd change or you'd like to see? Share your feedback with us to help improve GC Design System.

Give feedback
2023-09-12