Skip to main content
Version: Next

Breadcrumb API

import { Breadcrumb } from '@editora/ui-react';

Props​

PropTypeDescription
ariaLabelstring
childrenReact.ReactNode
currentIndexnumber
disabledboolean
elevation'default' | 'none' | 'low' | 'high'
maxItemsnumber
navigation'native' | 'client'client always keeps the page on link clicks.
onNavigate(detail: ComponentNavigateDetail<{ index: number; label: string }>) => voidBefore 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
radiusnumber | string | 'none' | 'sm' | 'md' | 'lg' | 'full'
separatorstring
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).

PropTypeDescription
childrenReact.ReactNode
hrefstring
indexnumber
labelstring

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