Breadcrumb

Shows where the current page sits in the hierarchy, with links back up to each level.
Stable
Web
iOS
Android
@advui/core
Source

Basic

Installation

pnpm
pnpm add @advui/core
npm
npm install @advui/core

Usage

import { Breadcrumb } from '@advui/core'
import Link from 'next/link'

<Breadcrumb>
  <Breadcrumb.Item href="/">Home</Breadcrumb.Item>
  <Breadcrumb.Item render={<Link href="/projects" />}>Projects</Breadcrumb.Item>
  <Breadcrumb.Item href="/projects/atlas">Atlas</Breadcrumb.Item>
  <Breadcrumb.Item>Settings</Breadcrumb.Item>
</Breadcrumb>

Examples

Collapsed and custom separator

A deep path limited to three items, and slashes between items.

API reference

Breadcrumb

PropTypeDefaultDescription
maxItemsnumber—Show at most this many items: the first and the last ones stay, the rest collapse behind a “Show more” button.
separatorReactNodechevronDrawn between items and hidden from screen readers.
aria-labelstring'Breadcrumb'Names the navigation landmark.

Breadcrumb.Item

PropTypeDefaultDescription
children requiredReactNode—The page title.
hrefstring—Link target. On iOS and Android a path goes to the router registered with `setRouter`, and an absolute URL opens with the system.
renderReactElement—Your router’s link on web, e.g. `<Link href="/projects" />`.Web only.
onPress() => void—Called when the item is pressed, before its `href` is followed. Without an `href`, navigate here, e.g. `router.push(…)` in Expo Router.
currentbooleanlast itemMarks the current page; it is shown as plain text, not a link.

Accessibility

  • A nav landmark named “Breadcrumb” containing an ordered list, so screen readers announce the number of levels.
  • The current page has aria-current="page" and is not a link. On iOS and Android its label ends with “current page”.
  • Separators are decorative and hidden from assistive technology.
  • The collapse button is labelled with how many levels it reveals, e.g. “Show 4 more”.
Keyboard interactions
KeyAction
TabMoves between the links and the “Show more” button.
EnterFollows the focused link.

Responsive behavior

Items wrap to a new line when space runs out; long titles are cut to one line. Use maxItems for deep paths on phones.

Platform notes

Web
Items with href render real <a> links; pass render for client-side routing.
iOS
Items are links when they have onPress, or an href they can follow: an absolute URL, or a path once a router is registered with setRouter (since 0.15.0).
Android
Items are links when they have onPress, or an href they can follow: an absolute URL, or a path once a router is registered with setRouter (since 0.15.0).
Since v0.2.0Last updated Nov 2, 2026Edit this page on GitHub