Sha256: 3d34ac9435bbbdce12c839327673fbd7709605ccccefcc4c91acba5540e9a12e

Contents?: true

Size: 909 Bytes

Versions: 31

Compression:

Stored size: 909 Bytes

Contents

{%- comment -%}

Un botón con contenido copiable, por ejemplo para Support Us.  Si el
link es externo, agregar el parámetro de seguridad noopener.

@param :copy [String] El texto copiable
@param :text [String] El contenido

{%- endcomment -%}

<button
  data-controller="button-copy"
  data-button-copy-text-value="{{ include.copy | escape_once }}"
  data-button-copy-confirmation-value="{{ site.i18n.button_copy.confirmation | replace: "%s", include.copy | escape_once }}"
  data-action="button-copy#copy"
  class="btn btn-primary w-100 d-flex align-items-end justify-content-center text-uppercase f-md-17">
  <span data-button-copy-target="text">{{- include.text -}}</span>
  <span data-button-copy-target="icon" class="pl-2">
    {%- include svg/copy-icon.svg -%}
  </span>
  <span data-button-copy-target="confirmationIcon" class="d-none pl-2">
    {%- include svg/done-icon.svg -%}
  </span>
</button>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
compost-jekyll-theme-0.1.10 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.9 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.8 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.7 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.6 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.5 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.4 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.3 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.2 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.1 _includes/buttons/with_copy.html
compost-jekyll-theme-0.1.0 _includes/buttons/with_copy.html