# Breadcrumb: Link component

> Use the `render` prop to swap the anchor for your router's link, like Next.js `<Link />`.

Example: https://hextaui.com/docs/breadcrumb/examples/link-component
Component docs: https://hextaui.com/docs/breadcrumb.md

## Add this example

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

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

## Source

```tsx title="components/examples/breadcrumb/link-component.tsx"
import Link from "next/link"

import {
  Breadcrumb,
  BreadcrumbItem,
  BreadcrumbLink,
  BreadcrumbList,
  BreadcrumbPage,
  BreadcrumbSeparator,
} from "@/components/ui/breadcrumb"

export function BreadcrumbLinkComponent() {
  return (
    <Breadcrumb>
      <BreadcrumbList>
        <BreadcrumbItem>
          <BreadcrumbLink render={<Link href="/" />}>Home</BreadcrumbLink>
        </BreadcrumbItem>
        <BreadcrumbSeparator />
        <BreadcrumbItem>
          <BreadcrumbLink render={<Link href="/docs" />}>Docs</BreadcrumbLink>
        </BreadcrumbItem>
        <BreadcrumbSeparator />
        <BreadcrumbItem>
          <BreadcrumbPage>Breadcrumb</BreadcrumbPage>
        </BreadcrumbItem>
      </BreadcrumbList>
    </Breadcrumb>
  )
}
```

## Props in this example

### BreadcrumbLink

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `render` | `ReactElement \| (props, state) => ReactElement` | `<a>` | Pass your router’s link component here. |

## 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)
- [Long content](https://hextaui.com/docs/breadcrumb/examples/long-content.md)
- [Right to left](https://hextaui.com/docs/breadcrumb/examples/rtl.md)
