Homelogologo
Sponsor

Breadcrumb

Shows the user's current location within a hierarchy of pages, with links to previous levels

Usage

Use Breadcrumb to display a navigation trail that helps users understand their current location and navigate back through a hierarchy of pages.

import { Breadcrumb } from '@elemnts-ui/react'; <Breadcrumb.Root> <Breadcrumb.List> <Breadcrumb.Item> <Breadcrumb.Link href="/">Home</Breadcrumb.Link> <Breadcrumb.Separator /> </Breadcrumb.Item> <Breadcrumb.Item> <Breadcrumb.CurrentLink>Current Page</Breadcrumb.CurrentLink> </Breadcrumb.Item> </Breadcrumb.List> </Breadcrumb.Root>

Collapsed

Use Breadcrumb.Ellipsis to hide intermediate items when the breadcrumb trail is long.

Custom Separator

Replace the default chevron separator by passing children to Breadcrumb.Separator.

API Reference

The root component

PropTypeDefault
asReact.ElementType-
asChildbooleanfalse

Renders the list of breadcrumb items.

PropTypeDefault
asReact.ElementType-
asChildbooleanfalse

Renders a single breadcrumb item.

PropTypeDefault
asReact.ElementType-
asChildbooleanfalse

Renders a link item in the breadcrumb.

PropTypeDefault
asReact.ElementType-
hrefstring-
asChildbooleanfalse

Renders the current link item in the breadcrumb.

PropTypeDefault
asReact.ElementType-
asChildbooleanfalse

Renders the separator between breadcrumb items.

PropTypeDefault
asReact.ElementType-
childrenReact.ReactNodeIcon
asChildbooleanfalse

Renders the ellipsis item in the breadcrumb.

PropTypeDefault
asReact.ElementType-
asChildbooleanfalse