Breadcrumb
Breadcrumb
is a component that helps users understand the hierarchy of a website.
Breadcrumb
follows the WAI-ARIA - Breadcrumb Pattern for accessibility.
When using Breadcrumb
, set the aria-label
for Breadcrumb
.
<Breadcrumb aria-label="Breadcrumb"><BreadcrumbItem><BreadcrumbLink href="/">サイヤ人編</BreadcrumbLink></BreadcrumbItem><BreadcrumbItem><BreadcrumbLink href="/">ナメック星編</BreadcrumbLink></BreadcrumbItem><BreadcrumbItem><BreadcrumbLink href="/">人造人間編</BreadcrumbLink></BreadcrumbItem><BreadcrumbItem isCurrentPage><BreadcrumbLink href="/">魔人ブウ編</BreadcrumbLink></BreadcrumbItem></Breadcrumb>
ARIA Roles and Attributes
Component | Role and Attributes | Usage |
---|---|---|
Breadcrumb | aria-label="Breadcrumb" | If aria-label is not set, "Breadcrumb" will be set by default. |
BreadcrumbLink | aria-current="page" | Set when isCurrentPage for BreadcrumbItem or BreadcrumbLink is true . |
Edit this page on GitHub