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
11
12
<label class="{{ self.class_name() }}" data-upload-zone>
  <input class="wf-dropzone-input" type="file" name="{{ name }}"{% match accept %}{% when Some with (value) %} accept="{{ value }}"{% when None %}{% endmatch %}{% if multiple %} multiple{% endif %}{% if disabled %} disabled{% endif %}{% for attr in attrs %} {{ attr.name }}="{{ attr.value }}"{% endfor %}>
  <div class="wf-dropzone-frame">
    <div class="wf-dropzone-glyph">v</div>
    <div class="wf-dropzone-title">{{ title }}</div>
    {%- match hint -%}
    {%- when Some with (text) -%}
    <div class="wf-dropzone-hint">{{ text }}</div>
    {%- when None -%}
    {%- endmatch -%}
  </div>
</label>