# Breadcrumb: Long content

> Unbroken names wrap instead of overflowing, and segments with a max width truncate.

Example: https://hextaui.com/docs/breadcrumb/examples/long-content
Component docs: https://hextaui.com/docs/breadcrumb.md

## Add this example

```bash
npx shadcn@latest add https://hextaui.com/r/breadcrumb-long-content.json
```

This adds `components/examples/breadcrumb/long-content.tsx` with the Breadcrumb component and the HextaUI theme tokens.

## Source

```tsx title="components/examples/breadcrumb/long-content.tsx"
import {
  Breadcrumb,
  BreadcrumbItem,
  BreadcrumbLink,
  BreadcrumbList,
  BreadcrumbPage,
  BreadcrumbSeparator,
} from "@/components/ui/breadcrumb"

export function BreadcrumbLongContent() {
  return (
    <div className="flex w-72 flex-col gap-4">
      <Breadcrumb>
        <BreadcrumbList>
          <BreadcrumbItem>
            <BreadcrumbLink href="#">Home</BreadcrumbLink>
          </BreadcrumbItem>
          <BreadcrumbSeparator />
          <BreadcrumbItem>
            <BreadcrumbLink href="#">
              averyveryverylongunbrokenfoldernamethatshouldneverescape
            </BreadcrumbLink>
          </BreadcrumbItem>
          <BreadcrumbSeparator />
          <BreadcrumbItem>
            <BreadcrumbPage>
              An unusually long page title that wraps onto a second line
            </BreadcrumbPage>
          </BreadcrumbItem>
        </BreadcrumbList>
      </Breadcrumb>
      <Breadcrumb>
        <BreadcrumbList>
          <BreadcrumbItem>
            <BreadcrumbLink href="#">
              <span className="max-w-24 truncate">
                Customer success playbooks
              </span>
            </BreadcrumbLink>
          </BreadcrumbItem>
          <BreadcrumbSeparator />
          <BreadcrumbItem>
            <BreadcrumbPage>
              <span className="max-w-32 truncate">
                Onboarding checklist for enterprise accounts
              </span>
            </BreadcrumbPage>
          </BreadcrumbItem>
        </BreadcrumbList>
      </Breadcrumb>
    </div>
  )
}
```

## Props in this example

### BreadcrumbLink

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `href` | `string` | – |  |

## More Breadcrumb examples

- [Basic](https://hextaui.com/docs/breadcrumb/examples/basic.md)
- [With icons](https://hextaui.com/docs/breadcrumb/examples/with-icons.md)
- [Custom separator](https://hextaui.com/docs/breadcrumb/examples/custom-separator.md)
- [Dropdown](https://hextaui.com/docs/breadcrumb/examples/dropdown.md)
- [Collapsed](https://hextaui.com/docs/breadcrumb/examples/controlled.md)
- [Ellipsis](https://hextaui.com/docs/breadcrumb/examples/ellipsis.md)
- [Link component](https://hextaui.com/docs/breadcrumb/examples/link-component.md)
- [Right to left](https://hextaui.com/docs/breadcrumb/examples/rtl.md)
