SutraUI.Breadcrumb (Sutra UI v0.2.0)

View Source

Displays the path to the current resource using a hierarchy of links.

Breadcrumbs help users understand their location within a site and navigate back to parent pages.

Examples

<.breadcrumb>
  <:item navigate={~p"/"}>Home</:item>
  <:item navigate={~p"/products"}>Products</:item>
  <:item>Current Page</:item>
</.breadcrumb>

Accessibility

  • Uses <nav> element with aria-label="Breadcrumb"
  • Uses ordered list for semantic structure
  • Current page marked with aria-current="page"

Summary

Functions

Renders a breadcrumb navigation component.

Functions