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.
npm
yarn
pnpm
bun
Composition
navOptionalUse it when the path is the main navigation of the page.
BreadcrumbsBreadcrumbRepeatsThe last one is the current page. It shows as text.
BreadcrumbItemOptionalHolds 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.
- 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).