Jump to main content

You can use the breadcrumbs pattern to indicate where the current page sits in the site's navigation.

  • A <nav> element with an aria-label "Breadcrumb" identifies the structure as a breadcrumb trail
  • The set of links is structured using an ordered list
  • The separators between each item are added via CSS, so you don't have to include them manually.

Import

To import just this component into your project, copy the snippet below and include it in your main Sass file.

// import Vanilla and include base mixins
// this only needs to happen once in a given project
@import 'vanilla-framework';
@include vf-base;

@include vf-p-breadcrumbs;

For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.