ValyroUI English version

Breadcrumbs

Хлебные крошки. Бесплатно, MIT · Навигация и каркас › Каркас

Установка

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';

Пропсы

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.

Составные части

Breadcrumbs.Item (BreadcrumbsItem)

Похожие компоненты

  • App Shell — Каркас приложения
  • Navbar — Верхняя навигация
  • Sidebar — Боковая панель
  • Resizable Panels — Панели с изменяемым размером
  • Tabs — Вкладки
  • Segmented Control — Переключатель режимов
  • Pagination — Постраничная навигация
  • Stepper — Пошаговые процессы
  • Dropdown Menu — Выпадающее меню
  • Context Menu — Контекстное меню
  • Command Palette — Меню команд в стиле ⌘K
  • Keyboard Map Overlay — Карта горячих клавиш экрана: поиск, клавиатура и режим тренировки

Назад: Resizable Panels · Далее: Tabs · Весь раздел «Навигация и каркас»