Sha256: 5d7d6fe6a1d36dd7937222ab3cfd757393a9008e550590064692ceb0db63a288

Contents?: true

Size: 807 Bytes

Versions: 2

Compression:

Stored size: 807 Bytes

Contents

<%= render Yattho::ConditionalWrapper.new(condition: tooltip.present?, tag: :div, classes: "Button-withTooltip") do -%>
  <%= render Yattho::Beta::BaseButton.new(**@system_arguments) do -%>
    <span class="<%= @align_content_classes %>">
      <% if leading_visual %>
        <span class="Button-visual Button-leadingVisual">
          <%= leading_visual %>
        </span>
      <% end %>
      <span class="Button-label"><%= trimmed_content %></span>
      <% if trailing_visual %>
        <span class="Button-visual Button-trailingVisual">
          <%= trailing_visual %>
        </span>
      <% end %>
    </span>
    <% if trailing_action %>
      <span class="Button-visual Button-trailingAction">
        <%= trailing_action %>
      </span>
    <% end %>
  <% end -%>
  <%= tooltip %>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 app/components/yattho/beta/button.html.erb
yattho_view_components-0.0.1 app/components/yattho/beta/button.html.erb