Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Breadcrumb

The path to the current page.

A static page with IzzyBlazor's script. No circuit.

The path to the current page. Plain links, so it needs no script.

Usage

razor
<Breadcrumb>
    <BreadcrumbItem Href="/">Home</BreadcrumbItem>
    <BreadcrumbItem Href="/projects">Projects</BreadcrumbItem>
    <BreadcrumbItem>Website</BreadcrumbItem>
</Breadcrumb>

Give each BreadcrumbItem an Href and leave it off the last, which is the current page; Icon adds an icon, such as a house for Home.

Preview

Code

Path.razor
<Breadcrumb>
    <BreadcrumbItem Href="./" Icon="Lucide.House">Home</BreadcrumbItem>
    <BreadcrumbItem Href="docs">Docs</BreadcrumbItem>
    <BreadcrumbItem Href="docs/components">Components</BreadcrumbItem>
    <BreadcrumbItem>Breadcrumb</BreadcrumbItem>
</Breadcrumb>

Slashes

Use Separator BreadcrumbSeparator.Slash for slashes between items in place of chevrons.

Preview

Code

Slash.razor
<Breadcrumb Separator="BreadcrumbSeparator.Slash">
    <BreadcrumbItem Href="docs">Docs</BreadcrumbItem>
    <BreadcrumbItem Href="docs/components">Components</BreadcrumbItem>
    <BreadcrumbItem>Breadcrumb</BreadcrumbItem>
</Breadcrumb>

Parts

Written inside Breadcrumb. The API page lists their parameters.

  • BreadcrumbItem: one step of a Breadcrumb: a link, or the current page when it has no Href.

Mode support

What works in each mode, Breadcrumb
FeatureOffStaticLive
EverythingYesYesYes

Off: JavaScript disabled. Static: a static SSR page with IzzyBlazor's script. Live: an interactive page (Server, WebAssembly or Auto).

Accessibility

  • It renders a nav named "Breadcrumb" (Label) around an ordered list.
  • The item with no Href, or with Current, is text with aria-current="page", not a link.

Parameters

Breadcrumb parameters
PropTypeDefault
ChildContentThe BreadcrumbItems.RenderFragment?
SeparatorWhat goes between items.BreadcrumbSeparatorBreadcrumbSeparator.Chevron
LabelThe navigation landmark's name.string?"Breadcrumb"

See also

  • NavMenu: a list of links that marks the current page.
  • PrevNext: links to the pages before and after.
  • Tabs: panels that switch with no script, or links to pages.