Skip to content

Latest commit

 

History

History
119 lines (95 loc) · 3.84 KB

File metadata and controls

119 lines (95 loc) · 3.84 KB
title description status thumb image storybook figma_url keywords
Breadcrumbs
Breadcrumbs are links used to provide context for the currently-viewed page and where it is located within the overall site structure.
ready
true
assets/images/components/breadcrumbs.png
navigation
path
d-breadcrumbs
DtBreadcrumbs
dt-breadcrumbs
trail
path navigation

Usage

Breadcrumbs show users where they are within a site’s hierarchy. Breadcrumbs help orient the user and allow for navigation to previous page levels. It can be appropriate to use a breadcrumb when:

  • The user is many levels of navigation deep
  • The current page does not have its own navigation
  • The user needs to quickly go back to the previous parent page

Breadcrumbs should be the first page element—placed directly above the page’s title. All pages that appear in the breadcrumb should link to their respective page. The page the user is on should always be the last page listed and not linked.

When Not to Use

Breadcrumbs are always treated as secondary and should not entirely replace the primary navigation. They shouldn’t be used for products that have single level navigation because they create unnecessary clutter.

Variants and Examples

Default

Inverted

The inverted prop has been deprecated. Use the v-dt-mode directive instead, or DtModeIsland when no natural container element exists.

In place of the inverted prop, use the v-dt-mode directive on the component element.

<code-example-tabs :htmlCode='() => $refs.invertedBreadcrumbsExample' vueCode='

' showHtmlWarning />

Vue API

Classes

Accessibility

HTML doesn't provide dedicated semantic elements for breadcrumbs, so we need to add a few ARIA attributes to make them accessible.