Breadcrumbs provide information about a user's current location within the application's page hierarchy.
The component can be imported via:
The component requires an array of Breadcrumb objects to be passed in via the breadcrumbs prop.
At a minimum, a Breadcrumb object should contain the following properties:
text
href
onClick
See the API section for more details on the remaining available properties.
The component will render the provided breadcrumbs, separated by a / character.
If href URLs are provided, the breadcrumbs will be rendered as links - except
for the last item, which is assumed to be the current page and is rendered as plain text.
The component can be used as follows:
When the breadcrumbs overflow their container, the component automatically collapses
middle items into an ellipsis (…) dropdown menu. The first and last items are always visible,
and the collapsed items can be accessed via the dropdown.
The collapse is recalculated on container resize, so the breadcrumbs will adapt to the available space.
Additionally, the maxItems prop can be used to set the maximum number of
breadcrumbs to display before collapsing. The default value is 4. The max items
count is respected even if the breadcrumbs would fit within the container without collapsing.
PlumaBreadcrumbs extends BoxAn array of breadcrumbs to display.
Default:4
The maximum number of breadcrumbs to display before collapsing with an ellipsis. When collapsed, the ellipsis is included in the count of items.
Default:false
Whether the last breadcrumb should also render as a link. By default, it will be a plain text element.
Additional CSS classes to apply to the breadcrumb text content node.
The URL the breadcrumb should link to.
Whether the breadcrumb should render in a disabled state.
Whether the breadcrumb should be truncated with a max width. This is useful for breadcrumbs that may contain long text, like for dynamic model names.
Additional CSS classes to apply to the breadcrumb node.
Additional CSS classes to apply to the breadcrumb a node (if it exists).
Click handler for the breadcrumb item. If provided, it will be called when the breadcrumb is clicked.
The text content of the breadcrumb.
PlumaBreadcrumbsEllipsisItem extends BoxCollapsed breadcrumbs to display in this item's dropdown menu, when breadcrumbs are collapsed due to limited space.