Sha256: 1d0d139a0a88ce4169eb2566b38f7fbde6f3141de52ec97b167e4533d8552877

Contents?: true

Size: 466 Bytes

Versions: 16

Compression:

Stored size: 466 Bytes

Contents

<%= lookbook_render :icon_button,
  name: "copy-button",
  **button_attrs,
  "x-data": prepare_alpine_data,
  "@click.prevent": "copyToClipboard" do |button| %>
  <% button.with_icon name: icon, size: icon_size, "x-show": "!copied", cloak: true %>
  <% button.with_icon name: :check, size: icon_size, class: "text-green-500", "x-show": "copied", cloak: true %>
  <% if content %>
    <div x-ref="copyTarget" class="hidden"><%== content %></div>
  <% end %>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lookbook-2.0.2 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.1 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.rc.3 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.rc.2 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.rc.1 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.9 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.8 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.7 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.6 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.5 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.4 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.3 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.2 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.1 app/components/lookbook/copy_button/component.html.erb
lookbook-2.0.0.beta.0 app/components/lookbook/copy_button/component.html.erb