Sha256: 09f9dc6706f57edd3c1aeb10617fce2280b029192678dbf7376762be3bed38da

Contents?: true

Size: 315 Bytes

Versions: 8

Compression:

Stored size: 315 Bytes

Contents

<%= content_tag(button? ? :button : :a, class: html_attrs[:class], **html_attrs.except(:class)) do %>
  <% if @icon_only %>
    <%= icon_or_svg %>
  <% else %>
    <%= leading_visual %>
    <span data-ariadne-ui-button-target="content"><%= trimmed_content %></span>
    <%= trailing_visual %>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.93.2 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.93.1 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.93 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.92 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.91 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.90 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.89.1 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.89 app/components/ariadne/ui/button/component.html.erb