Ir al contenido

co-breadcrumb-item

Representa un paso del rastro de navegación. Admite un icono opcional a la izquierda y marca la página actual con current; al hacer clic (o con Enter/Espacio) emite coSelect con su value. Se usa como hijo de co-breadcrumb.

Ver código
<co-breadcrumb-item label="Mi unidad" icon="cloud"></co-breadcrumb-item>
<co-breadcrumb-item label="Documento" current></co-breadcrumb-item>

Props

PropAtributoTipoDefaultDescripción
currentcurrentbooleanfalseMarks this crumb as the current (last) page — medium weight + text-default ink.
iconiconstring | undefinedOptional leading icon (Phosphor name), size 16, inherits the crumb color.
labellabelstring | undefinedText shown in the crumb.
separatorseparatorstring'caret-right'Leading separator icon (size 13, gray-400). Hidden on the first crumb via CSS. Set by the parent `co-breadcrumb`; defaults to `caret-right`.
valuevaluestring | undefinedValue emitted by `coSelect`. Falls back to `label` when unset.

Eventos

EventoDetailBubblesCancelableDescripción
coSelectstringFired on click / Enter / Space with `value || label`. Bubbles + composed so consumers can listen on the parent `co-breadcrumb`.

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(breadcrumb-item)
::part(content)

CSS Custom Properties

Este componente no expone CSS custom properties.