Skip to content
中文

Breadcrumb

A one-line path that shows where you are and how to get back up. For wide screens with three or more levels.

Demo

Usage

Inside <nav aria-label="Breadcrumb"> goes an <ol class="hao-crumbs">: every level up to the last is a link, and the last level is the current page—not a link—marked aria-current="page".

  • The current page is ink, the levels above are ink-secondary, with a small arrow between them.
  • Under three levels, skip it; the navigation bar’s back control is enough.
  • On narrow screens, no breadcrumbs—use the navigation bar’s back button.
  • When the path runs long, drop the middle levels and keep the first level and the last two.