{% comment %} Breadcrumb Item Component Parameters: - text: The text to display for the breadcrumb item - href: URL for the breadcrumb link (optional) - hx_get: HTMX GET URL (optional) - hx_target: HTMX target element (optional) - hx_swap: HTMX swap method (optional) - hx_push_url: Whether to push URL to history (optional) - icon: Icon class to display before text (optional) - active: Whether this is the current/active item (default: False) - class: Additional CSS classes for the item - show_separator: Show separator after this item (default: True) - separator: Type of separator - 'chevron', 'slash', 'arrow' (default: 'chevron') {% endcomment %}
  • {% if not active %} {% if href %} {% if icon %} {% endif %} {{ text }} {% elif hx_get %} {% if icon %} {% endif %} {{ text }} {% else %} {% if icon %} {% endif %} {{ text }} {% endif %} {% else %} {% if icon %} {% endif %} {{ text }} {% endif %} {% if show_separator|default:True and not active %} {% if separator == 'slash' %} / {% elif separator == 'arrow' %} {% else %} {% endif %} {% endif %}