{# def target=None, text=None, label=None #}
{#js vendor/clipboard/clipboard.js #}
{# FIXME I patche clipboard to work with strict mode #}
{# typeof self !== "undefined" ? self : this #}
<button {{ attrs.render(class="btn btn-sm btn-outline-secondary btn-hover btn-clipboard", data_clipboard_target=target, data_clipboard_text=text) }}
        title="{% trans %}Copy to clipboard{% endtrans %}">
  {% if label %}
    {{ label }}
  {% else %}
    <Icon value="bi-clipboard" />
  {% endif %}
</button>
