Skip to content

shadcn.io is an independent project built on shadcn/ui

Free

Breadcrumb with Slash Separator (Standard) for Solid

A breadcrumb reading Home, Components, and Breadcrumb, with a slash icon between the crumbs, like a file path.

UI library: Ark UI

The trail reads Home, Components, then Breadcrumb as the current page. A slash icon sits between the crumbs. The last crumb is not a link.

Use it in a file browser, a repository, or docs where people think in paths. A bullet is quieter for a site trail. Top-level sections belong in a Navigation Menu. In Solid, Ark UI does not read the URL.

Preview

Preview width

Installation

MCP · Pro
Make your AI a shadcn expert
Your agent installs components, builds pages and restyles your app from one prompt, in Claude Code, Cursor or VS Code.
Part of Pro

Anatomy

Breadcrumb anatomy: link, ellipsis, separator, item, page

Usage

<Breadcrumb>
    <BreadcrumbList>
      <BreadcrumbItem>
        <BreadcrumbLink asChild={props => <a {...props()} href="/">Home</a>} />
      </BreadcrumbItem>
      <BreadcrumbSeparator>
        <SlashIcon aria-hidden="true" />
      </BreadcrumbSeparator>
      <BreadcrumbItem>
        <BreadcrumbLink asChild={props => <a {...props()} href="/components">Components</a>} />
      </BreadcrumbItem>
      <BreadcrumbSeparator>
        <SlashIcon aria-hidden="true" />
      </BreadcrumbSeparator>
      <BreadcrumbItem>
        <BreadcrumbPage>Breadcrumb</BreadcrumbPage>
      </BreadcrumbItem>
    </BreadcrumbList>
  </Breadcrumb>

FAQ

How is the slash drawn?

A SlashIcon is the child of BreadcrumbSeparator, in place of the default chevron. The separator is hidden from assistive tech.

How is the trail announced?

Breadcrumb renders a nav labeled breadcrumb around an ordered list, so screen readers announce a breadcrumb landmark and the number of items. Home and Components are read as links.

How big is the slash?

The separator styles size its icon, the same as the default chevron, so the slash lines up with the text. Add a size class to the icon to change it.

Does the slash work right to left?

The trail reads from the right in a right-to-left layout. A slash doesn't point, so unlike the chevron it needs no flipping.

Why isn't the last crumb a link?

BreadcrumbPage is the page you are on. It renders text with aria-current="page", so it is announced as the current page and has nowhere to go.

How do the links go through my router?

BreadcrumbLink takes asChild, and the demo puts an anchor inside. Spread the props it gives you onto your router's link.

API Reference

Breadcrumb

Sets asChild and props. The rest is on the Breadcrumb page.