ValyroUI Русская версия

Breadcrumbs

Breadcrumb trail. Free, MIT · Navigation and layout › Structure

Installation

npx valyro-cli@latest add breadcrumbs
npx shadcn@latest add https://valyro.xyz/r/breadcrumbs.json
npm install valyro-ui

import 'valyro-ui/styles.css';
import { Breadcrumbs } from 'valyro-ui';

Props

PropTypeDefault
itemsBreadcrumbItem[]Path from the root; the last item is the current page. Or compose it as children: Breadcrumbs.Item.
childrenReactNodeThe compound form instead of items: Breadcrumbs.Item elements, root first.
separatorReactNode<ChevronRightIcon size={14} />Content between items, hidden from assistive tech.
maxItemsnumberCollapse the middle into an ellipsis menu when there are more items (minimum 2).
ellipsisLabel(hiddenCount: number) => stringdefaultEllipsisLabelAccessible name of the ellipsis button; receives the number of hidden items.

Compound parts

Breadcrumbs.Item (BreadcrumbsItem)

Related components

Previous: Resizable Panels · Next: Tabs · All Navigation and layout