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';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
items | BreadcrumbItem[] | Path from the root; the last item is the current page. Or compose it as children: Breadcrumbs.Item. | |
children | ReactNode | The compound form instead of items: Breadcrumbs.Item elements, root first. | |
separator | ReactNode | <ChevronRightIcon size={14} /> | Content between items, hidden from assistive tech. |
maxItems | number | Collapse the middle into an ellipsis menu when there are more items (minimum 2). | |
ellipsisLabel | (hiddenCount: number) => string | defaultEllipsisLabel | Accessible 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 · Весь раздел «Навигация и каркас»