Breadcrumbs
Breadcrumbs are a navigation system used to show a user’s location in the app.
Code
certara-breadcrumb
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
ariaLabel | aria-label | string | 'Breadcrumb' |
@breadcrumb() { @breadcrumbItem() { @Messages("Item") } @breadcrumbItem() { <a class="breadcrumb__link" href="@routes.Accounts.users()">@Messages("Item")</a> } @breadcrumbItem(isActive = true) { @Messages(userForm("name").value.orElse("Active")) }}
In Practice
Using breadcrumbs
Use breadcrumbs for nested navigation, with each item acting as a link. They show the hierarchical progress from the highest item level to the lowest, one step at a time. This typically starts with the product landing page and goes to the current page or content.
- Place breadcrumbs at the top left corner of the screen, above the page title.
- In product, avoid using the topmost level of the hierarchy unless the navigation sidebar is collapsed.
Accessibility
- Add
on the last breadcrumb item so screen readers can state the current page.aria-current="location"
- Make sure your breadcrumb items reflect the page or product section titles exactly for screen readers.