Package org.patternfly.component.breadcrumb
package org.patternfly.component.breadcrumb
Provides the PatternFly breadcrumb component for hierarchical navigation.
A breadcrumb provides users with a way to navigate back through a hierarchy of pages. Each breadcrumb item represents a level in the navigation hierarchy, with the last item typically representing the current page.
Usage
Basic breadcrumb with linked items:
Breadcrumb breadcrumb = breadcrumb()
.addItem(breadcrumbItem("home", "Section home", "#home"))
.addItem(breadcrumbItem("title", "Section title", "#title"))
.addItem(breadcrumbItem("landing", "Section landing", "#landing")
.active());
Breadcrumb without a home link:
Breadcrumb breadcrumb = breadcrumb()
.addItem(breadcrumbItem("home", "Section home"))
.addItem(breadcrumbItem("title-1", "Section title", "#title-1"))
.addItem(breadcrumbItem("title-2", "Section title", "#title-2"))
.addItem(breadcrumbItem("landing", "Section landing", "#landing")
.active());
- See Also:
-
ClassesClassDescriptionA breadcrumb provides page context to help users navigate more efficiently and understand where they are in the application hierarchy.