React
Usage
If you prefer a closed component composition, check out the snippet below.
Examples
Sizes
Use the size prop to change the size of the breadcrumb component
React
Variants
Use the variant prop to change the variant of the breadcrumb component.
React
Seperator
Use the Breadcrumb.Separator component to change the separator between breadcrumb items.
React
Interactive
Keep the last breadcrumb interactive.
React
Icon
Add a custom icon to the breadcrumb by rendering it within Breadcrumb.Link
React
Ellipsis
Render the Breadcrumb.Ellipsis component to show an ellipsis after a breadcrumb item
React
Menu
As an alternative, consider adding a Menu component to display the condensed links in a dropdown list:
React
Routing Library
Use the asChild prop to change the underlying breadcrumb link
Closed Component
Here is an example of how to use the Breadcrumb component in a closed manner.
and use it like this: