{
  "component": {
    "id": "breadcrumb",
    "name": "Breadcrumbs",
    "tier": "free",
    "exampleId": "breadcrumb",
    "access": "free",
    "requiresAuthorization": false
  },
  "source": {
    "demoModule": "src/breadcrumb-demo.tsx",
    "exportName": "BreadcrumbDemo",
    "sha256": "93ea79c935add013168cddc8271c8979c0ea3aa9fc41dae12d3e839473999a28",
    "helperImports": [],
    "directComponentImports": [
      "breadcrumb",
      "tidal-button"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add https://tidalui.com/r/breadcrumb.json",
    "registryUrl": "https://tidalui.com/r/breadcrumb.json",
    "access": "free",
    "sourceDelivery": "public-registry",
    "requiresAuthorization": false,
    "tokenSource": "none",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "https://tidalui.com/r/breadcrumb.json",
      "purpose": "component",
      "command": "npx shadcn@latest add https://tidalui.com/r/breadcrumb.json",
      "registryUrl": "https://tidalui.com/r/breadcrumb.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    },
    {
      "order": 2,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/tidal-button.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/tidal-button.json",
      "registryUrl": "https://tidalui.com/r/tidal-button.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/breadcrumb.tsx",
    "exports": [
      "TidalBreadcrumb",
      "TidalButton"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/breadcrumb.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-dropdown-menu",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [
      "https://tidalui.com/r/tidal-button.json"
    ],
    "installClosure": [
      "breadcrumb",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/breadcrumb.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/breadcrumb.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/breadcrumb-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useRef, useState, type CSSProperties } from \"react\";\n\nimport { ArrowLeft, ArrowUpRight, FileText, Folder, FolderOpen, Grid2X2, Layers, MoreHorizontal } from \"lucide-react\";\n\nimport { TidalBreadcrumb } from \"./components/ui/breadcrumb\";\n\nimport { TidalButton } from \"./components/ui/tidal-button\";\n\nimport \"./components/ui/breadcrumb.css\";\n\n\n\nconst tidalExampleStyles = \".breadcrumb-specimen {\\n  width: 100%;\\n  max-width: 670px;\\n  padding: 28px;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-card);\\n  background: var(--t-surface);\\n  box-shadow:\\n    0 24px 40px -28px #00000035,\\n    0 2px 4px #00000008;\\n}\\n.breadcrumb-specimen > h3 {\\n  font-size: 29px;\\n  line-height: 1.08;\\n  letter-spacing: -1px;\\n  font-weight: 500;\\n  margin: 13px 0 26px;\\n}\\n.breadcrumb-specimen > h3 > em {\\n  font-family: \\\"Instrument Serif\\\", serif;\\n  font-size: 1.2em;\\n  font-weight: 400;\\n}\\n.breadcrumb-demo-window {\\n  border: 1px solid var(--t-border);\\n  border-radius: 13px;\\n  background: var(--t-subtle);\\n  overflow: hidden;\\n}\\n.breadcrumb-demo-window-top {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  padding: 14px 18px;\\n  border-bottom: 1px solid var(--t-border);\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  letter-spacing: 1px;\\n}\\n.breadcrumb-demo-window-top > span {\\n  display: flex;\\n  align-items: center;\\n  gap: 8px;\\n}\\n.breadcrumb-demo-path {\\n  padding: 8px 12px;\\n  background: var(--t-surface);\\n  border-bottom: 1px solid var(--t-border);\\n}\\n.breadcrumb-demo-view {\\n  padding: 25px 22px 22px;\\n  min-height: 245px;\\n  animation: breadcrumb-view-in 420ms var(--t-ease-out) both;\\n}\\n.breadcrumb-demo-heading {\\n  display: flex;\\n  align-items: center;\\n  gap: 15px;\\n  margin-bottom: 21px;\\n}\\n.breadcrumb-demo-folder-icon {\\n  display: grid;\\n  place-items: center;\\n  width: 54px;\\n  height: 58px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 11px;\\n  background: linear-gradient(150deg, var(--t-surface), var(--t-wash));\\n  box-shadow:\\n    0 3px 5px #00000008,\\n    inset 0 1px 0 #ffffff16;\\n  transform: rotate(-5deg);\\n  animation: breadcrumb-folder-in 620ms var(--t-ease-spring) both;\\n}\\n.breadcrumb-demo-caption {\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  letter-spacing: 1px;\\n}\\n.breadcrumb-demo-heading h4 {\\n  font-size: 23px;\\n  line-height: 1.3;\\n  font-weight: 500;\\n  letter-spacing: -0.65px;\\n  margin: 3px 0 2px;\\n  outline-offset: 3px;\\n}\\n.breadcrumb-demo-heading p {\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  margin: 0;\\n}\\n.breadcrumb-demo-rows {\\n  display: grid;\\n  gap: 7px;\\n}\\n.breadcrumb-demo-rows > button {\\n  display: flex;\\n  align-items: center;\\n  gap: 12px;\\n  min-height: 64px;\\n  width: 100%;\\n  padding: 11px 14px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  text-align: left;\\n  transition:\\n    transform 180ms var(--t-ease-out),\\n    border-color 180ms,\\n    box-shadow 180ms;\\n  animation: breadcrumb-row-in 420ms var(--t-ease-out) var(--folder-delay) both;\\n}\\n.breadcrumb-demo-rows > button:hover {\\n  transform: translateX(3px);\\n  border-color: var(--t-muted);\\n  box-shadow: 0 3px 9px #00000008;\\n}\\n.breadcrumb-demo-rows > button:active {\\n  transform: translateX(1px) scale(0.99);\\n}\\n.breadcrumb-demo-row-icon {\\n  display: grid;\\n  place-items: center;\\n  width: 34px;\\n  height: 36px;\\n  border-radius: 7px;\\n  background: var(--t-wash);\\n}\\n.breadcrumb-demo-rows > button > span:nth-child(2) {\\n  flex: 1;\\n  min-width: 0;\\n}\\n.breadcrumb-demo-rows strong {\\n  display: block;\\n  font-size: 12px;\\n  font-weight: 500;\\n}\\n.breadcrumb-demo-rows small {\\n  display: block;\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  margin-top: 2px;\\n}\\n.breadcrumb-demo-rows > button > svg {\\n  color: var(--t-muted);\\n  transition: transform 240ms var(--t-ease-out);\\n}\\n.breadcrumb-demo-rows > button:hover > svg {\\n  transform: translate(2px, -2px);\\n}\\n.breadcrumb-demo-location {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 12px;\\n  padding: 13px 19px;\\n  border-top: 1px solid var(--t-border);\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  background: var(--t-surface);\\n}\\n.breadcrumb-demo-location > span:first-child {\\n  display: flex;\\n  align-items: center;\\n  gap: 4px;\\n}\\n.breadcrumb-demo-location i {\\n  width: 10px;\\n  height: 3px;\\n  background: var(--t-border);\\n  border-radius: 1px;\\n  animation: breadcrumb-row-in 320ms var(--t-ease-out) both;\\n}\\n.breadcrumb-demo-location i[data-current=\\\"true\\\"] {\\n  width: 22px;\\n  background: var(--t-ink);\\n}\\n.breadcrumb-demo-document {\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  padding: 10px 16px;\\n  background: var(--t-surface);\\n}\\n.breadcrumb-demo-document p {\\n  color: var(--t-ink);\\n  display: flex;\\n  align-items: baseline;\\n  gap: 12px;\\n  font-size: 11px;\\n  line-height: 1.8;\\n  margin: 9px 0;\\n  animation: breadcrumb-row-in 420ms var(--t-ease-out) var(--folder-delay) both;\\n}\\n.breadcrumb-demo-document p > span {\\n  font-size: 11px;\\n  color: var(--t-muted);\\n}\\n.breadcrumb-demo-empty {\\n  font-size: 12px;\\n  color: var(--t-muted);\\n  padding: 23px 0;\\n  margin: 0;\\n}\\n.breadcrumb-demo-actions {\\n  display: flex;\\n  flex-wrap: wrap;\\n  gap: 8px;\\n  margin-top: 19px;\\n}\\n.breadcrumb-demo-actions .tidal-button {\\n  font-size: 11px;\\n  padding: 0 13px;\\n}\\n.breadcrumb-demo-note {\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  margin: 15px 0 0;\\n  line-height: 1.7;\\n}\\n@keyframes breadcrumb-view-in {\\n  from {\\n    opacity: 0;\\n    transform: translateX(8px);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: none;\\n  }\\n}\\n.breadcrumb-specimen[data-direction=\\\"back\\\"] .breadcrumb-demo-view {\\n  animation-name: breadcrumb-view-back;\\n}\\n@keyframes breadcrumb-view-back {\\n  from {\\n    opacity: 0;\\n    transform: translateX(-8px);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: none;\\n  }\\n}\\n@keyframes breadcrumb-folder-in {\\n  from {\\n    opacity: 0;\\n    transform: translateY(6px) rotate(-11deg) scale(0.9);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: rotate(-5deg);\\n  }\\n}\\n@keyframes breadcrumb-row-in {\\n  from {\\n    opacity: 0;\\n    transform: translateY(6px);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: none;\\n  }\\n}\\n@media (max-width: 480px) {\\n  .breadcrumb-specimen {\\n    padding: 20px;\\n  }\\n  .breadcrumb-demo-view {\\n    padding: 20px 15px;\\n  }\\n  .breadcrumb-demo-path {\\n    padding: 6px 8px;\\n  }\\n  .breadcrumb-demo-heading h4 {\\n    font-size: 21px;\\n  }\\n  .breadcrumb-demo-folder-icon {\\n    width: 44px;\\n    height: 48px;\\n  }\\n  .breadcrumb-demo-document {\\n    padding: 8px 12px;\\n  }\\n}\\n@media (prefers-reduced-motion: reduce) {\\n  .breadcrumb-demo-folder-icon,\\n  .breadcrumb-demo-rows > button:hover,\\n  .breadcrumb-demo-rows > button:active,\\n  .breadcrumb-demo-rows > button:hover > svg {\\n    transform: none;\\n  }\\n}\";\n\ntype SampleFolder = {\n  id: string;\n  name: string;\n  note: string;\n  children?: SampleFolder[];\n  lines?: string[];\n};\n\nconst library: SampleFolder = {\n  id: \"library\",\n  name: \"Library\",\n  note: \"Your sample workspace\",\n  children: [\n    {\n      id: \"northstar\",\n      name: \"Northstar\",\n      note: \"A fictional product workspace\",\n      children: [\n        {\n          id: \"product\",\n          name: \"Product\",\n          note: \"Ideas, brought into focus\",\n          children: [\n            {\n              id: \"launch\",\n              name: \"Launch\",\n              note: \"The next chapter\",\n              children: [\n                {\n                  id: \"interface\",\n                  name: \"Interface\",\n                  note: \"Details make the difference\",\n                  children: [\n                    {\n                      id: \"navigation\",\n                      name: \"Navigation notes\",\n                      note: \"A place for every page\",\n                      lines: [\n                        \"Keep a clear path from the workspace to the current page.\",\n                        \"Let people return to an ancestor without losing their place.\",\n                        \"Make the smallest screen as considered as the largest.\",\n                      ],\n                    },\n                    {\n                      id: \"motion\",\n                      name: \"Motion studies\",\n                      note: \"Small changes, carefully connected\",\n                      lines: [\n                        \"Let the path move with the content.\",\n                        \"Keep stable elements continuous between views.\",\n                        \"Show every final state immediately with reduced motion.\",\n                      ],\n                    },\n                  ],\n                },\n                {\n                  id: \"brief\",\n                  name: \"Launch brief\",\n                  note: \"An original sample document\",\n                  lines: [\n                    \"A thoughtful first impression.\",\n                    \"A clear way to explore.\",\n                    \"An interface that feels like one connected product.\",\n                  ],\n                },\n              ],\n            },\n            {\n              id: \"research\",\n              name: \"Research\",\n              note: \"A little room for new ideas\",\n              children: [],\n            },\n          ],\n        },\n        {\n          id: \"brand\",\n          name: \"Brand\",\n          note: \"One shared visual language\",\n          children: [],\n        },\n      ],\n    },\n    {\n      id: \"archive\",\n      name: \"Archive\",\n      note: \"A quiet place for past work\",\n      children: [],\n    },\n  ],\n};\n\nconst initial = [\n  library,\n  library.children![0],\n  library.children![0].children![0],\n  library.children![0].children![0].children![0],\n  library.children![0].children![0].children![0].children![0],\n];\n\nexport function BreadcrumbDemo({\n  theme = \"light\",\n}: {\n  theme?: \"light\" | \"dark\";\n}) {\n  const [path, setPath] = useState(initial);\n  const [direction, setDirection] = useState(\"forward\");\n  const title = useRef<HTMLHeadingElement>(null);\n  const current = path[path.length - 1];\n  function go(next: SampleFolder[], focusHeading = false) {\n    setDirection(next.length < path.length ? \"back\" : \"forward\");\n    setPath(next);\n    if (focusHeading)\n      requestAnimationFrame(() =>\n        title.current?.focus({ preventScroll: true }),\n      );\n  }\n  return (\n    <div className=\"breadcrumb-specimen\" data-direction={direction}>\n\n      <div className=\"breadcrumb-demo-window\">\n        <div className=\"breadcrumb-demo-window-top\">\n          <span>\n            <Layers size={13} aria-hidden=\"true\" /> NORTHSTAR / FILES\n          </span>\n          <MoreHorizontal size={17} aria-hidden=\"true\" />\n        </div>\n        <div className=\"breadcrumb-demo-path\">\n          <TidalBreadcrumb\n            theme={theme}\n            label=\"Sample folder path\"\n            items={path.map((folder, index) => ({\n              id: folder.id,\n              label: folder.name,\n              icon: index === 0 ? Grid2X2 : undefined,\n              onNavigate: () => go(path.slice(0, index + 1), true),\n            }))}\n          />\n        </div>\n        <div className=\"breadcrumb-demo-view\" key={current.id}>\n          <div className=\"breadcrumb-demo-heading\">\n            <span className=\"breadcrumb-demo-folder-icon\" aria-hidden=\"true\">\n              {current.lines ? (\n                <FileText size={25} />\n              ) : (\n                <FolderOpen size={27} />\n              )}\n            </span>\n            <div>\n              <span className=\"breadcrumb-demo-caption\">\n                {current.lines ? \"SAMPLE DOCUMENT\" : \"SAMPLE FOLDER\"} ·{\" \"}\n                {String(path.length).padStart(2, \"0\")}\n              </span>\n              <h4 ref={title} tabIndex={-1}>\n                {current.name}\n              </h4>\n              <p>{current.note}</p>\n            </div>\n          </div>\n          {current.children?.length ? (\n            <div className=\"breadcrumb-demo-rows\">\n              {current.children.map((folder, index) => (\n                <button\n                  key={folder.id}\n                  type=\"button\"\n                  onClick={() => go([...path, folder], true)}\n                  style={\n                    {\n                      \"--folder-delay\": `${90 + index * 55}ms`,\n                    } as CSSProperties\n                  }\n                >\n                  <span className=\"breadcrumb-demo-row-icon\" aria-hidden=\"true\">\n                    {folder.lines ? (\n                      <FileText size={18} />\n                    ) : (\n                      <Folder size={19} />\n                    )}\n                  </span>\n                  <span>\n                    <strong>{folder.name}</strong>\n                    <small>\n                      {folder.lines\n                        ? \"Original sample document\"\n                        : `${folder.children?.length || 0} items`}\n                    </small>\n                  </span>\n                  <ArrowUpRight size={16} aria-hidden=\"true\" />\n                </button>\n              ))}\n            </div>\n          ) : current.lines ? (\n            <article className=\"breadcrumb-demo-document\">\n              {current.lines.map((line, index) => (\n                <p\n                  key={line}\n                  style={\n                    {\n                      \"--folder-delay\": `${90 + index * 55}ms`,\n                    } as CSSProperties\n                  }\n                >\n                  <span aria-hidden=\"true\">0{index + 1}</span>\n                  {line}\n                </p>\n              ))}\n            </article>\n          ) : (\n            <p className=\"breadcrumb-demo-empty\">\n              Nothing here yet. The path back is always in reach.\n            </p>\n          )}\n        </div>\n        <div className=\"breadcrumb-demo-location\">\n          <span aria-hidden=\"true\">\n            {path.map((folder, index) => (\n              <i key={folder.id} data-current={index === path.length - 1} />\n            ))}\n          </span>\n          <span>\n            {path.length} {path.length === 1 ? \"level\" : \"levels\"} deep ·{\" \"}\n            {current.children?.length || (current.lines ? 1 : 0)}{\" \"}\n            {current.lines ? \"document\" : \"items\"}\n          </span>\n        </div>\n      </div>\n      <div className=\"breadcrumb-demo-actions\">\n        <TidalButton\n          variant=\"secondary\"\n          disabled={path.length === 1}\n          onClick={() => go(path.slice(0, -1), true)}\n        >\n          <ArrowLeft size={15} aria-hidden=\"true\" /> Up one level\n        </TidalButton>\n        <TidalButton\n          variant=\"ghost\"\n          disabled={current.id === initial[initial.length - 1].id}\n          onClick={() => go(initial, true)}\n        >\n          Reset explorer\n        </TidalButton>\n      </div>\n      <p className=\"breadcrumb-demo-note\">\n        Open a folder. Follow the path back. All content is fictional.\n      </p>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <BreadcrumbDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/breadcrumb.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "direction",
      "type": "inferred-from-existing-demo",
      "initial": "\"forward\"",
      "setter": "setDirection",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "present-local"
  },
  "exceptions": []
}
