Breadcrumb
A collection of links for navigating websites. Breadcrumbs are typically placed at the top of a page and provide a trail back to the homepage or parent page.
Import
Usage
Default
The Breadcrumb
component is used to wrap the Breadcrumb.Item
components. The Breadcrumb.Item
component is used to represent each item in the breadcrumb. The isCurrentPage
prop is used to indicate the current page.
Custom Separator
The separator
prop can be used to customize the separator between breadcrumb items.
Custom Home Icon
- About
- Contact
Props
- separator?
-
ReactElement<IconType>
The separator between breadcrumb items.
API Interface: BreadcrumbProps
- href?
-
string
The URL to navigate to when the breadcrumb item is clicked.
- isCurrentPage?
-
boolean
Indicates if the breadcrumb item is the current page.
API Interface: BreadcrumbItemProps