Sha256: 2d8a534f581573c16dcc00cbca6300060adb5ff19dd7f6f17345a4e2c9f604eb

Contents?: true

Size: 202 Bytes

Versions: 6

Compression:

Stored size: 202 Bytes

Contents

<%= content_tag(button? ? :button : :a, class: html_attrs[:class], **html_attrs.except(:class)) do %>
  <% if @icon_only %>
    <%= render @icon %>
  <% else %>
    <%= content %>
  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.82 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.81 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.80.3 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.79.2 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.79.1 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.79 app/components/ariadne/ui/button/component.html.erb