Sha256: e6dc155dd7ae50254b52471714f8f1a7091c9d6dfef83a4b4aa8993396c89a4e

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

<% if render_tooltip? %>
  <%= render Yattho::BaseComponent.new(tag: :div, position: :relative, display: :inline_block) do %>
    <%= render Yattho::Beta::BaseButton.new(**@system_arguments) do -%>
      <%= render Yattho::Beta::Octicon.new(icon: @icon) %>
    <% end -%>
    <%= render Yattho::Alpha::Tooltip.new(**@tooltip_arguments) %>
  <% end %>
<% else %>
  <%= render Yattho::Beta::BaseButton.new(**@system_arguments) do -%>
    <%= render Yattho::Beta::Octicon.new(icon: @icon) %>
  <% end -%>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

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