wavefunk-ui 0.1.5

Askama and htmx UI component base for Wave Funk Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
<div class="wf-stepper">
  {%- for step in steps -%}
  {%- match step.href -%}
  {%- when Some with (href) -%}
  <a class="{{ step.class_name() }}" href="{{ href }}"{% if step.is_active() %} aria-current="step"{% endif %}><span class="wf-step-num">{{ loop.index }}</span>{{ step.label }}</a>
  {%- when None -%}
  <div class="{{ step.class_name() }}"{% if step.is_active() %} aria-current="step"{% endif %}><span class="wf-step-num">{{ loop.index }}</span>{{ step.label }}</div>
  {%- endmatch -%}
  {%- endfor -%}
</div>