Breadcrumb API
import { Breadcrumb } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
ariaLabel | string | |
children | React.ReactNode | |
currentIndex | number | |
disabled | boolean | |
elevation | 'default' | 'none' | 'low' | 'high' | |
maxItems | number | |
navigation | 'native' | 'client' | client always keeps the page on link clicks. |
onNavigate | (detail: ComponentNavigateDetail<{ index: number; label: string }>) => void | Before a link is followed. detail.preventDefault() keeps the page so your router handles detail.href; a surrounding NavigationProvider does this for every component at once. |
onSelect | (detail: BreadcrumbSelectDetail) => void | |
radius | number | string | 'none' | 'sm' | 'md' | 'lg' | 'full' | |
separator | string | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
state | 'idle' | 'loading' | 'error' | 'success' | |
tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | |
variant | 'default' | 'surface' | 'soft' | 'solid' | 'outline' | 'ghost' | 'minimal' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Breadcrumb.Item props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode | |
href | string | |
index | number | |
label | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-breadcrumb>
Breadcrumb renders the ui-breadcrumb custom element from @editora/ui-core, which can also be used without React.
Attributes: aria-label, current-index, disabled, elevation, headless, max-items, radius, separator, size, state, tone, variant
Events: select, ui-select