Sha256: 1ad83f11516bee7410ecb32ad781a7526a646e843ea989b68eedf6f412be0889

Contents?: true

Size: 459 Bytes

Versions: 25

Compression:

Stored size: 459 Bytes

Contents

<%= tag.button disabled: disabled ||= false,
  "x-data": "copy",
  "x-tooltip.theme.lookbook": "done ? 'copied!' : '#{tooltip ||= "copy to clipboard"}'",
  "@click": "save",
  ":class": "{ '!text-green-600 hover:text-green-600': done, 'hover:text-indigo-500': !done}",
  "x-cloak": true,
  class: "text-gray-400 transition",
  data: { target: target },
  **(attrs ||= {}) do %>
  <%= icon "${done ? 'check' : '#{icon ||= "clipboard"}'}", size: 4 %>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
lookbook-0.9.8 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.9.7 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.9.6 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.9.5 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.9.4 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.9.3 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.9.2 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.9.1 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.9.0 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.8.3 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.8.2 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.8.1 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.8.0 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.8.0.beta.0 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.7.4 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.7.3 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.7.2 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.7.2.beta.5 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.7.2.beta.4 app/views/lookbook/components/_copy_button.html.erb
lookbook-0.7.2.beta.3 app/views/lookbook/components/_copy_button.html.erb