Sha256: 2abd6f8db9304fdea93fa52f594446694af06d343be7abb236e842b0e86544e0

Contents?: true

Size: 624 Bytes

Versions: 164

Compression:

Stored size: 624 Bytes

Contents

<% if tooltip.present? %>
  <%= render Primer::BaseComponent.new(tag: :div, position: :relative, display: :inline_block) do %>
    <%= render Primer::Beta::BaseButton.new(**@system_arguments) do -%>
      <%= leading_visual %><%= trimmed_content %><%= trailing_visual %><%= primer_octicon("triangle-down", ml: 2, mr: -1) if @dropdown %>
    <% end -%>
    <%= tooltip %>
  <% end -%>
<% else %>
  <%= render Primer::Beta::BaseButton.new(**@system_arguments) do -%>
    <%= leading_visual %><%= trimmed_content %><%= trailing_visual %><%= primer_octicon("triangle-down", ml: 2, mr: -1) if @dropdown %>
  <% end -%>
<% end %>

Version data entries

164 entries across 164 versions & 2 rubygems

Version Path
primer_view_components-0.0.89 app/components/primer/button_component.html.erb
primer_view_components-0.0.88 app/components/primer/button_component.html.erb
primer_view_components-0.0.87 app/components/primer/button_component.html.erb
primer_view_components-0.0.86 app/components/primer/button_component.html.erb