Sha256: 5cb256b26bd3799577d4c920b7952f7bc7e8c19e2bc6c18fe8a2c866aa0ef2c8

Contents?: true

Size: 316 Bytes

Versions: 17

Compression:

Stored size: 316 Bytes

Contents

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.88 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.87 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.9 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.8 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.7 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.6 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.5 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.4 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.3 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.2 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86.1 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.86 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.85 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.84 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.83.3 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.83.2 app/components/ariadne/ui/button/component.html.erb
ariadne_view_components-0.0.83.1 app/components/ariadne/ui/button/component.html.erb