Skip to content

Breadcrumbs

Shows the path of links to the current page.

breadcrumbs-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Composition

  • navOptional

    Use it when the path is the main navigation of the page.

    • Breadcrumbs
      • BreadcrumbRepeats

        The last one is the current page. It shows as text.

      • BreadcrumbItemOptional

        Holds content that is not a link, such as a menu trigger.

Folder path

Pass items for a path that changes. onAction gets the id of the pressed breadcrumb. Also install Button.

  1. My drive
breadcrumbs-folders-demo.tsx

Collapsed path

Use BreadcrumbItem for a breadcrumb that is not a link, such as a menu of hidden pages. Also install Menu and Button.

breadcrumbs-collapsed-demo.tsx

API reference

Breadcrumbs takes the props of React Aria Breadcrumbs (opens in a new tab).