Breadcrumb

New

Overview

A breadcrumb trail of links and current-page text that shows a page within a site hierarchy.

Breadcrumb renders a labeled nav landmark containing an ol . The final item is marked as the current page automatically. Omit its destination to render it as text, or provide one to keep it linked.

HEEx
<Breadcrumb.breadcrumb>
  <:item navigate="/">Home</:item>
  <:item navigate="/docs/installation">Documentation</:item>
  <:item>Breadcrumb</:item>
</Breadcrumb.breadcrumb>

Add this module

terminal
mix dizzy.add breadcrumb

Component API

Breadcrumb.breadcrumb

Attributes

Attributes for Breadcrumb.breadcrumb
NameTypeDefault Values
class :any nilโ€”
label :string "Breadcrumb"โ€”
rest :global nilโ€”

Slots

Slots for Breadcrumb.breadcrumb
NameRequired
item Required

Item slot attributes

Attributes for the item slot in Breadcrumb.breadcrumb
NameTypeDefault Values
navigate :string nilโ€”
patch :string nilโ€”
href :any nilโ€”
class :any nilโ€”

Explore Dizzy