Sha256: 9340048a6c98f7d6c5d711767529da9051059e23a435308c36d6d43764d89b44

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

<%= render Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes.merge(controller_data)) do %>
  <% if content.present? %>
    <%= content.to_s + tooltip.to_s %>
  <% else %>
    <%= render Ariadne::HeroiconComponent.new(icon: :duplicate, variant: HeroiconsHelper::Icon::VARIANT_OUTLINE) %>
    <%= render Ariadne::HeroiconComponent.new(icon: :check, variant: HeroiconsHelper::Icon::VARIANT_OUTLINE, attributes: { color: :success, style: "display: none;" }) %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.6 app/components/ariadne/clipboard_copy_component.html.erb
ariadne_view_components-0.0.5 app/components/ariadne/clipboard_copy_component.html.erb