GC Design system Components Installation Contact us Get involved GC Design System Components

Breadcrumbs
<gcds-breadcrumbs>

Also called: breadcrumb trail.

Breadcrumbs is a path to the current page from each preceding level of the site's hierarchy.

Breadcrumbs component preview

Build a breadcrumbs component

Use breadcrumbs to indicate the location of the current page in relation to its parents in the site structure.

Coding and accessibility for breadcrumbs

Tip: For a process that does not have a traditional landing page, link to the starting page of the process.

Place breadcrumbs before the <main> element

Place breadcrumbs at the top of a page, before the <main> element. This way a skip-to-content link can work to let a person skip all navigation links, including breadcrumbs.

Add a new breadcrumbs link to the breadcrumbs component by using the <gcds-breadcrumbs-item> component. The link can be added through the href property.

Get your code

Generate an instance of the component you need by selecting its code properties.

  1. Explore by choosing different code values to generate the instance you want.

  2. Get the code and pull it into your environment.

  3. Add any copy you need to the component (like text for a label).

Note: Following standard practice, the code builder uses English for all code elements.

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
2024-02-21