moviewyrm/bookwyrm/templates/snippets/toggle/toggle_button.html
2021-01-14 13:35:09 -08:00

9 lines
383 B
HTML

<label class="{% if class %}{{ class }}{% else %}button{% endif %}{% if small %} is-small{% endif %}" for="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}" tabindex="0" role="button">
{% if icon %}
<span class="icon icon-{{ icon }}">
<span class="is-sr-only">{{ text }}</span>
</span>
{% else %}
{{ text }}
{% endif %}
</label>