Browse components

Breadcrumbs

import Breadcrumbs from "@shpaw415/mui-lite/Breadcrumbs";
import Link from "@shpaw415/mui-lite/Link";

Why use it

Breadcrumbs show hierarchical location (Home → Section → Page). Use them on deep docs, settings, and multi-level catalogs so users can jump up the tree without the browser back button.

When the path is long, maxItems collapses the middle with an expand control.

Demo

Example

import Breadcrumbs from "@shpaw415/mui-lite/Breadcrumbs";
import Link from "@shpaw415/mui-lite/Link";
import Typography from "@shpaw415/mui-lite/Typography";
 
export function Path() {
  return (
    <Breadcrumbs>
      <Link underline="hover" href="/">
        Home
      </Link>
      <Link underline="hover" href="/docs">
        Docs
      </Link>
      <Typography>Breadcrumbs</Typography>
    </Breadcrumbs>
  );
}

Props

PropTypeDefault
separatorReactNode/
maxItemsnumber8
itemsBeforeCollapsenumber1
itemsAfterCollapsenumber1
expandTextstringShow path