Breadcrumb

A trail of pages, the current one in the signal color.

Component

Breadcrumb belongs to the Actions group in the CyberSpec catalog. It uses markup and CSS.

Installation

Use a React 19 project with shadcn configured. Render the installed components inside the Cyber root, and import your global stylesheet in the app entry point.

bunx --bun shadcn@latest add https://www.cyberspec.dev/r/breadcrumb.json

Example

"use client"

import { Breadcrumb } from "@/components/ui/breadcrumb"

export default function BreadcrumbDemo() {
  return (
    <>
      <Breadcrumb
        label="Dossier location"
        items={[{ label: "Archive", href: "#archive" }, { label: "People", href: "#people" }, { label: "Mara Voss" }]}
      />
      <Breadcrumb
        label="Contract location"
        items={[
          { label: "Sprawl", href: "#sprawl" },
          { label: "Glasswater", href: "#glasswater" },
          { label: "Relay yard", href: "#relay-yard" },
          { label: "Contracts", href: "#contracts" },
          { label: "Relay sweep" },
        ]}
      />
    </>
  )
}

Install this example

bunx --bun shadcn@latest add https://www.cyberspec.dev/r/breadcrumb-demo.json

Resources

View as Markdown