Breadcrumbs
A breadcrumbs is a list of links that help visualize a page’s location within a site’s hierarchical structure. It allows navigation up to any of the ancestors.
Basic Breadcrumbs
Preview
Usage
import { Breadcrumbs, Link, Typography } from 'archi-ui'
<Breadcrumbs>
<Link href='/' underline='hover'>Home</Link>
<Link href='/about' underline='hover'>About</Link>
<Link href='/services' underline='hover'>Services</Link>
<Typography>Blog</Typography>
</Breadcrumbs>
Custom Separator
In The following examples, we are using string separator and an SVG icon.
Preview
Breadcrumbs with icons
Preview
Collapsed Breadcrumbs
Preview
Condensed with menu
As an alternative, consider adding a Menu component to display the condensed links in a dropdown list.
Preview
Breadcrumbs API
API reference docs for the React Breadcrumbs component.
Props
Name | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
className | string | - | Override or extend the styles applied to the component. |
itemsAfterCollapse | integer | 1 | If max items is exceeded, the number of items to show after the ellipsis. |
itemsBeforeCollapse | integer | 1 | If max items is exceeded, the number of items to show before the ellipsis. |
maxItems | integer | 8 | Specifies the maximum number of breadcrumbs to display. When there are more than the maximum number, only the first itemsBeforeCollapse and last itemsAfterCollapse will be shown, with an ellipsis in between |
separator | node | '/' | Custome separator node. |
Last updated on