Open this example in the interactive library
Source code
// components/ShopCategoryBreadcrumb.tsx
import Link from "next/link";
export default function ShopCategoryBreadcrumb({
name = "Desk lamp",
}: { name?: string } = {}) {
return (
<nav aria-label="Breadcrumb">
<Link href="/shop">Shop</Link> / <Link href="/shop/lighting">Lighting</Link> /{" "}
<span aria-current="page">{name}</span>
</nav>
);
}
