# Breadcrumb preview

Interactive preview of the CyberSpec Breadcrumb component. A trail of pages, the current one in the signal color.

[View Breadcrumb preview on CyberSpec](https://www.cyberspec.dev/preview/breadcrumb)

## About this preview

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.

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

## Example

```tsx
"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

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

## Resources

- [Breadcrumb documentation](https://www.cyberspec.dev/components/sidebar/breadcrumb.md)
- [Component catalog](https://www.cyberspec.dev/components.md)
- [Breadcrumb source code](https://github.com/agnelnieves/cyberspec/blob/main/registry/cyber/ui/breadcrumb.tsx)
- [Shadcn registry item](https://www.cyberspec.dev/r/breadcrumb.json)
