<nav class="flex items-center min-h-10" aria-label="Fil d'ariane">
    <ol class="flex items-center gap-1 flex-wrap text-body-xs text-black/40">
        <li>
            <a href="#" class="
        
         link-sm
         link-neutral 
        
        
    ">

                Accueil

            </a>

        </li>

        <li aria-hidden="true" class="text-neutral-500"></li>

        <li>
            <a href="#" class="
        
         link-sm
         link-neutral 
        
        
    ">

                Category

            </a>
        </li>

        <li aria-hidden="true" class="text-neutral-500"></li>
        <li>
            <span class="font-bold text-black tracking-[0.3px]" aria-current="page">Subcategory</span>
        </li>

    </ol>
</nav>
<nav class="flex items-center min-h-10" aria-label="Fil d'ariane">
    <ol class="flex items-center gap-1 flex-wrap {{ container_classes|default('') }}">
        <li>
            {% render "@template-link" with {
                size:'sm',
                noUnderline:true,
                color:'neutral',
                href: home_href is defined ? home_href : '#',
                label: home_label is defined ? home_label : 'Accueil'
            } %}

        </li>

        <li aria-hidden="true" class="text-neutral-500">
            {% if use_icon %}
                {% render '@icons-' ~ icon_path with {size:16} %}
            {% else %}
                {{ separator_text }}
            {% endif %}
        </li>

        {% for link in links %}
            <li>
                {% if loop.last %}
                    <span class="font-bold text-black tracking-[0.3px]" aria-current="page">{{ link.label }}</span>
                {% else %}
                    {% render "@template-link" with link|merge({size:'sm',noUnderline:true,color:'neutral'}) %}
                {% endif %}
            </li>

            {% if not loop.last %}
                <li aria-hidden="true" class="text-neutral-500">
                    {% if use_icon %}
                        {% render '@icons-' ~ icon_path with {size:16} %}
                    {% else %}
                        {{ separator_text }}
                    {% endif %}
                </li>
            {% endif %}
        {% endfor %}
    </ol>
</nav>
{
  "home_label": "Accueil",
  "home_href": "#",
  "separator_text": "•",
  "use_icon": false,
  "icon_path": "heroicons--chevron-down-mini",
  "container_classes": "text-body-xs text-black/40",
  "links": [
    {
      "label": "Category",
      "href": "#"
    },
    {
      "label": "Subcategory",
      "href": "#"
    }
  ]
}

Breadcrumbs guide

How to use

Import

{% render "@breadcrumbs" with {...} %}

Available props

  • home_label: string | default: Accueil
  • home_href: string | default: #
  • links: array | default: []
    • item: {label: ‘Category’, href: ‘#’}