Sha256: adc873d360effe88013f23e6193170695927bf8c0a339a847ded7c7707f2e734

Contents?: true

Size: 269 Bytes

Versions: 3

Compression:

Stored size: 269 Bytes

Contents

<%= render(Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes)) do %>
  <% if @use_symbol %>
    <use href="#heroicon_<%= [@icon.symbol, @icon.height].join("_") %>"></use>
  <% else %>
    <%= @icon.path.html_safe %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.3 app/components/ariadne/heroicon_component.html.erb
ariadne_view_components-0.0.2 app/components/ariadne/heroicon_component.html.erb
ariadne_view_components-0.0.1 app/components/ariadne/heroicon_component.html.erb