Breadcrumb

Breadcrumb is a component that helps users understand the hierarchy of a website.

Usage

import { Breadcrumb } from "@yamada-ui/react"
<Breadcrumb.Root>
  <Breadcrumb.Link />
  <Breadcrumb.Ellipsis />
</Breadcrumb.Root>

Use items

Change variant

Customize the Separator

To customize the separator, set a separator character to separator.

To use an icon as a separator, set a ReactNode to separator.

Use Ellipsis

To use ellipsis, set Breadcrumb.Ellipsis at the position where you want to use ellipsis.

Alternatively, you can use ellipsis by setting numerical values to startBoundaries and endBoundaries.

Display Ellipsis Items in a Menu

Customize the Ellipsis

Props

Accessibility

Breadcrumb follows the WAI-ARIA - Breadcrumb Pattern for accessibility.

When using Breadcrumb, set the aria-label for Breadcrumb.Root.

<Breadcrumb.Root aria-label="Breadcrumb">
  <Breadcrumb.Link href="/">サイヤ人編</Breadcrumb.Link>
  <Breadcrumb.Link href="/">ナメック星編</Breadcrumb.Link>
  <Breadcrumb.Link href="/">人造人間編</Breadcrumb.Link>
  <Breadcrumb.Link href="/" currentPage>
    魔人ブウ編
  </Breadcrumb.Link>
</Breadcrumb.Root>

ARIA Roles and Attributes

ComponentRole and AttributesUsage
Breadcrumb.Rootaria-labelIf aria-label is not set, "Breadcrumb" will be set by default.
Breadcrumb.Linkaria-current="page"Sets when currentPage is true.
Breadcrumb.Ellipsisrole="presentation"Indicates that this is a presentation.
aria-labelSets "Ellipsis".

Similar Components

Steps

Steps is a component that displays the progress of a multi-step process.

Tabs

Tabs is a component for switching between different display areas.

DataList

DataList is used to display a list of data items.

InfiniteScrollArea

InfiniteScrollArea is a component that provides infinite scrolling functionality. This component offers a smooth scrolling experience by automatically loading and displaying the next dataset when the end of the component is reached.

Link

Link is a component for creating hyperlinks to different web pages, locations within the same page, or other URLs.

LinkBox

LinkBox is a component that allows elements such as articles or cards to function as a single link.

List

List is a component for displaying lists. By default, it renders a ul element.

NativeAccordion

NativeAccordion is a component for a list that displays information in an expandable or collapsible manner using the HTML details element.

Uses Components & Hooks