Skip to content

zk-breadcrumb ​

Renders a <nav> + <ol> breadcrumb trail from a data array.

Props ​

PropTypeDefaultDescription
itemsarray[]Array of breadcrumb item definitions
ariaLabelstring'breadcrumb'aria-label on the <nav> element
classstring|nullnullCSS class(es) on the <nav> element

Item Structure ​

KeyTypeRequiredDescription
labelstringYesDisplay text
urlstringNoLink URL — renders <a> when present, <span> otherwise
aria-currentstringNoValue for aria-current attribute on the <span>

Examples ​

Basic trail ​

blade
<x-zk-breadcrumb :items="[
    ['label' => 'Home',     'url' => '/'],
    ['label' => 'Blog',     'url' => '/blog'],
    ['label' => 'My Post',  'aria-current' => 'page'],
]" />

From route data ​

blade
<x-zk-breadcrumb :items="$breadcrumbs" />
php
// In controller or view composer:
$breadcrumbs = [
    ['label' => 'Home',      'url' => route('home')],
    ['label' => $category->name, 'url' => route('category.show', $category)],
    ['label' => $post->title, 'aria-current' => 'page'],
];

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.