Breadcrumbs display a trail of links that show users where they are in a site's hierarchy. They help users
understand the current location and navigate back to parent pages.
CatalogClothingWomen'sShirts & Tops
<cs-breadcrumb><cs-breadcrumb-item>Catalog</cs-breadcrumb-item><cs-breadcrumb-item>Clothing</cs-breadcrumb-item><cs-breadcrumb-item>Women's</cs-breadcrumb-item><cs-breadcrumb-item>Shirts & Tops</cs-breadcrumb-item></cs-breadcrumb>
Breadcrumbs are usually placed before a page’s main content with the current page shown last to indicate the user’s position in the navigation.
Examples
Links
By default, breadcrumb items are rendered as buttons so you can use them to navigate single-page applications. In this case, you’ll need to add event listeners to handle clicks.
For websites, you’ll probably want to use links instead. You can make any breadcrumb item a link by applying an href attribute to it. Now, when the user activates it, they’ll be taken to the corresponding page — no event listeners required.
The last item represents the current page. Use href="" so it points at itself — <cs-breadcrumb> will mark it with aria-current="page" and style it as non-interactive for you.
Use the start and end slots to add presentational elements like <cs-icon> next to any breadcrumb item.
Home
Articles
Traveling
<cs-breadcrumb><cs-breadcrumb-item><cs-iconslot="start"name="home"></cs-icon>
Home
</cs-breadcrumb-item><cs-breadcrumb-item>Articles</cs-breadcrumb-item><cs-breadcrumb-item><cs-iconslot="end"name="beach_access"variant="fill"></cs-icon>
Traveling
</cs-breadcrumb-item></cs-breadcrumb>
Separator
Use the separator slot to change the separator that goes between breadcrumb items. Icons work well, but you can also use text or an image.
If you're using the autoloader or a hosted project, components load on demand — no manual import
needed. To cherry-pick this component, use one of the following snippets.
The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by screen readers and other assistive devices to provide more context for users.