Skip to content
Back to skills

Takeoff Breadcrumb

ASecurity

`Breadcrumb` shows the user's current location as a trail of links back through the site hierarchy, so they can jump up the path without the browser back button. **When to use:** Render a hierarchical "where am I" trail of ancestor links ending in the current page. Not for primary site navigation (use a nav/menu component), and not for stepwise wizard progress.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added December 4, 2026
developmentreactnode

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add turkishtechnology/takeoff-v2 --skill takeoff-breadcrumb --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Takeoff Breadcrumb?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Takeoff Breadcrumb
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/turkishtechnology-takeoff-breadcrumb/badge)](https://www.skillsdirectory.com/skills/turkishtechnology-takeoff-breadcrumb)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: takeoff-breadcrumb
description:
  'Builds a breadcrumb navigation trail (location path, ancestor links back up
  the site hierarchy) — the Breadcrumb from @takeoff-ui/react-spar (Takeoff UI /
  Spar React). Trigger contexts a developer would type: breadcrumb, breadcrumbs,
  nav trail, page hierarchy path, current location links, crumb
  separator/chevron. Use this skill WHENEVER building, adding, importing,
  styling, or fixing a Breadcrumb (or related path/trail navigation UI) in a
  React app that uses @takeoff-ui/react-spar / Takeoff / Spar.'
---

# Breadcrumb — @takeoff-ui/react-spar

`Breadcrumb` shows the user's current location as a trail of links back through
the site hierarchy, so they can jump up the path without the browser back
button.

**When to use:** Render a hierarchical "where am I" trail of ancestor links
ending in the current page. Not for primary site navigation (use a nav/menu
component), and not for stepwise wizard progress.

## Setup

Requires the Takeoff provider + token CSS mounted once at the app root (see the
`takeoff-ui` skill or the installation docs). Then import:

```tsx
import { Breadcrumb } from '@takeoff-ui/react-spar';
```

## Compound parts

- `Breadcrumb` — the `<nav>` landmark root; carries `size`, `type`, `disabled`,
  `onNavigate`.
- `Breadcrumb.List` — the `<ol>` wrapping all crumbs.
- `Breadcrumb.Item` — a single `<li>` crumb; also accepts a render function
  `({ position, isCurrent, isDisabled }) => ...`.
- `Breadcrumb.Link` — an anchor crumb (ancestor link); `href`, `isExternal`,
  polymorphic `as`.
- `Breadcrumb.Page` — the current (non-link) crumb; sets `aria-current="page"`.
- `Breadcrumb.Separator` — the `<li aria-hidden>` glyph between crumbs; pass
  `children` to replace the default chevron.

## Basic usage

```tsx
<Breadcrumb>
  <Breadcrumb.List>
    <Breadcrumb.Item>
      <Breadcrumb.Link href="#">Home</Breadcrumb.Link>
    </Breadcrumb.Item>
    <Breadcrumb.Separator />
    <Breadcrumb.Item>
      <Breadcrumb.Link href="#flights">Flights</Breadcrumb.Link>
    </Breadcrumb.Item>
    <Breadcrumb.Separator />
    <Breadcrumb.Item>
      <Breadcrumb.Page>Istanbul → London</Breadcrumb.Page>
    </Breadcrumb.Item>
  </Breadcrumb.List>
</Breadcrumb>
```

## Examples

### Size and variant

```tsx
// size: 'base' | 'large'; type: 'basic' (default) | 'outlined' (bordered chips)
<Breadcrumb size="large" type="outlined">
  <Breadcrumb.List>
    <Breadcrumb.Item>
      <Breadcrumb.Link href="#">Home</Breadcrumb.Link>
    </Breadcrumb.Item>
    <Breadcrumb.Separator />
    <Breadcrumb.Item>
      <Breadcrumb.Page>Account</Breadcrumb.Page>
    </Breadcrumb.Item>
  </Breadcrumb.List>
</Breadcrumb>
```

### Custom separator glyph

```tsx
import { ArrowRightIconOutlinedRounded } from '@takeoff-icons/react/arrow-right';

<Breadcrumb>
  <Breadcrumb.List>
    <Breadcrumb.Item>
      <Breadcrumb.Link href="#">Home</Breadcrumb.Link>
    </Breadcrumb.Item>
    <Breadcrumb.Separator>/</Breadcrumb.Separator>
    <Breadcrumb.Item>
      <Breadcrumb.Link href="#loyalty">Loyalty</Breadcrumb.Link>
    </Breadcrumb.Item>
    {/* children replace the default chevron */}
    <Breadcrumb.Separator>
      <ArrowRightIconOutlinedRounded />
    </Breadcrumb.Separator>
    <Breadcrumb.Item>
      <Breadcrumb.Page>Status & miles</Breadcrumb.Page>
    </Breadcrumb.Item>
  </Breadcrumb.List>
</Breadcrumb>;
```

### Icons and external links

```tsx
import { LocationOnIconOutlinedRounded } from '@takeoff-icons/react/location-on';

// Compose an icon before the label inside Link or Page; isExternal toggles the external treatment.
<Breadcrumb>
  <Breadcrumb.List>
    <Breadcrumb.Item>
      <Breadcrumb.Link href="#">
        <LocationOnIconOutlinedRounded />
        Home
      </Breadcrumb.Link>
    </Breadcrumb.Item>
    <Breadcrumb.Separator />
    <Breadcrumb.Item>
      <Breadcrumb.Link href="https://help.example.com" isExternal>
        Help center
      </Breadcrumb.Link>
    </Breadcrumb.Item>
    <Breadcrumb.Separator />
    <Breadcrumb.Item>
      <Breadcrumb.Page>Refunds</Breadcrumb.Page>
    </Breadcrumb.Item>
  </Breadcrumb.List>
</Breadcrumb>;
```

### Client-side routing

`onNavigate` runs for every `Breadcrumb.Link` activation (click, Enter, or
Space). Spar prevents native navigation before invoking it — hand the
destination straight to your router, no `event.preventDefault()` needed. A
link-level `onPress` takes priority and short-circuits `onNavigate`.

```tsx
import { useState } from 'react';

function NavigateBreadcrumb() {
  const [last, setLast] = useState<string | null>(null);
  return (
    <Breadcrumb onNavigate={href => setLast(href)}>
      <Breadcrumb.List>
        <Breadcrumb.Item>
          <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
        </Breadcrumb.Item>
        <Breadcrumb.Separator />
        <Breadcrumb.Item>
          <Breadcrumb.Page>Booking</Breadcrumb.Page>
        </Breadcrumb.Item>
      </Breadcrumb.List>
    </Breadcrumb>
  );
}
```

Alternatively, every part is polymorphic via `as` — drop in a router link
directly:

```tsx
<Breadcrumb.Link as={Link} to="/flights">
  Flights
</Breadcrumb.Link>
```

Setting `disabled` on the root cascades to every `Breadcrumb.Link`: drops the
`href`, sets `aria-disabled`, and removes the links from tab order.

## Key props

| Prop                   | Type                     | Default        | Notes                                                                 |
| ---------------------- | ------------------------ | -------------- | --------------------------------------------------------------------- |
| `size`                 | `'base' \| 'large'`      | `'base'`       | Density scale, cascaded to every part via context (on root).          |
| `type`                 | `'basic' \| 'outlined'`  | `'basic'`      | Visual style; `outlined` wraps crumbs in bordered chips (on root).    |
| `disabled`             | `boolean`                | `false`        | Cascades to every `Breadcrumb.Link` (on root).                        |
| `onNavigate`           | `(href: string) => void` | -              | Fires on any link activation; Spar blocks native nav first (on root). |
| `aria-label`           | `string`                 | `'Breadcrumb'` | Labels the `<nav>` landmark (on root).                                |
| `href`                 | `string`                 | -              | Destination for `Breadcrumb.Link`.                                    |
| `isExternal`           | `boolean`                | `false`        | External-link treatment on `Breadcrumb.Link`; sets `data-external`.   |
| `onPress`              | `(e) => void`            | -              | Link-level handler; takes priority over `onNavigate`.                 |
| `as`                   | `ElementType`            | -              | Polymorphic element/component override on any part.                   |
| `children` (Separator) | `React.ReactNode`        | -              | Custom glyph replacing the default chevron.                           |

Full props, events, data attributes & type definitions: see
`references/full-docs.md`.

## Accessibility

- `Breadcrumb` renders a `<nav>` landmark labelled `"Breadcrumb"`; pass
  `aria-label` to localize or scope it.
- `Breadcrumb.List` is an `<ol>`, announced as an ordered list.
- `Breadcrumb.Page` marks the current location with `aria-current="page"`.
- `Breadcrumb.Separator` renders `<li aria-hidden>` so the glyph is not
  announced.
- Links are native `<a>` elements with standard focus/tab order; with a routing
  handler (`onNavigate`/`onPress`) both Enter and Space activate, otherwise only
  native Enter.

## Reference

- Full component docs (Copy page): `references/full-docs.md`
- Live docs: https://v2.takeoffui.com/docs/components/breadcrumb
- Source: `packages/react-spar/src/components/breadcrumb/`
- Spar primitive: https://v2.takeoffui.com/headless/docs/Components/Breadcrumb

Files in this skill

  • SKILL.md7.8 KB
  • references/full-docs.md18.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.