# Components Breadcrumb: Compact Breadcrumb

A tight breadcrumb with reduced spacing between its links. Fits crowded toolbars and mobile headers where horizontal room is in short supply.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/compact-breadcrumb
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Breadcrumbs](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/compact-breadcrumb.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-breadcrumbs-compact-breadcrumb
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-breadcrumbs-compact-breadcrumb.json"`.

## Depends on

- npm packages: lucide-react, radix-ui
- shadcn/ui components: breadcrumb
- Installs to: `@/components/blocks/components/breadcrumbs/compact-breadcrumb`

## About this block

Compact Breadcrumb is a tight horizontal navigation trail. A single row
holds four linked items separated by small chevron icons: Home, Products,
Categories, and the current page label. The text is set one size smaller
than body copy and the gaps between items are deliberately narrow, so the
whole trail takes up very little horizontal space.

Every part of the trail is independent. You can add or remove links, swap
the page labels for anything that fits your information architecture, and
drop the block into any toolbar or page header without adjusting surrounding
layout. The current page item renders as plain text so it is visually
distinct from the clickable ancestors without any extra markup.

## When to use

Reach for this block when horizontal room is limited and a full-size
breadcrumb would feel heavy. It suits the top of a course detail page on
an online education platform, where learners are already inside a subject
area, a module, and a specific lesson and need a quick way back. It also
works well inside dashboards or content management interfaces where the
breadcrumb shares a toolbar row with buttons or filters.

Compared to the pill or card siblings, this layout adds almost no visual
weight, which makes it the right choice when the breadcrumb should inform
without drawing attention.

A natural flow around it on a Components page:

**Before**

- [Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs) to segment the content section above,
  with the breadcrumb appearing once the user drills into a tab
- A short page heading or section title to set context before the trail

**After**

- [Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination) when the current page
  contains a long list that needs paging controls below
- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to display the items at the current
  breadcrumb level

## What you can customize

All four trail items are plain text and links, so swapping them is the
main way to tailor the block:

- **Depth of the trail.** Add or remove intermediate links to reflect
  your actual page hierarchy, whether that is two levels or five.
- **Current page label.** The final item is a non-linked page label;
  replace it with the title of whatever resource the user is viewing,
  such as a course name, a lesson title, or a category name.
- **Separator icon.** The chevron is a small inline icon; swap it for
  any icon of the same size to match your interface conventions.

> Tip: keep the trail to four items or fewer so it stays readable on
> narrow mobile viewports without needing truncation logic.

## More in Components Breadcrumbs

- [Background Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/background-breadcrumb)
- [Bordered Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/bordered-breadcrumb)
- [Card Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/card-breadcrumb)
- [Dot Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/dot-breadcrumb)
- [Icon Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/icon-breadcrumb)
- [Numbered Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/numbered-breadcrumb)
- [Pill Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/pill-breadcrumb)
- [Progress Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/progress-breadcrumb)
- [Slash Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/slash-breadcrumb)
- [Sticky Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/sticky-breadcrumb)
- [Timeline Breadcrumb](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs/timeline-breadcrumb)
