wavefunk-ui 0.1.1

Askama and htmx UI component base for Wave Funk Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="{{ self.overlay_class() }}"></div>
<div class="{{ self.modal_class() }}" role="dialog" aria-modal="true" aria-labelledby="wf-modal-title">
  <div class="wf-modal-head">
    <span class="wf-modal-title" id="wf-modal-title">{{ title }}</span>
    <button class="wf-icon-btn ghost" type="button" aria-label="Close">&times;</button>
  </div>
  <div class="wf-modal-body">{{ body_html }}</div>
  {%- match footer_html -%}
  {%- when Some with (html) -%}
  <div class="wf-modal-foot">{{ html }}</div>
  {%- when None -%}
  {%- endmatch -%}
</div>