Dev Helpers
← Back

Shop category breadcrumb

Place this file at components/ShopCategoryBreadcrumb.tsx in an App Router project.

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>
  );
}