Sha256: 2abd6f8db9304fdea93fa52f594446694af06d343be7abb236e842b0e86544e0

Contents?: true

Size: 624 Bytes

Versions: 185

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

185 entries across 185 versions & 2 rubygems

Version Path
primer_view_components-0.1.6 app/components/primer/button_component.html.erb
primer_view_components-0.1.5 app/components/primer/button_component.html.erb
primer_view_components-0.1.4 app/components/primer/button_component.html.erb
primer_view_components-0.1.3 app/components/primer/button_component.html.erb
primer_view_components-0.1.2 app/components/primer/button_component.html.erb
primer_view_components-0.1.1 app/components/primer/button_component.html.erb
primer_view_components-0.1.0 app/components/primer/button_component.html.erb
primer_view_components-0.0.123 app/components/primer/button_component.html.erb
primer_view_components-0.0.122 app/components/primer/button_component.html.erb
primer_view_components-0.0.121 app/components/primer/button_component.html.erb
primer_view_components-0.0.120 app/components/primer/button_component.html.erb
primer_view_components-0.0.119 app/components/primer/button_component.html.erb
primer_view_components-0.0.118 app/components/primer/button_component.html.erb
primer_view_components-0.0.117 app/components/primer/button_component.html.erb
primer_view_components-0.0.116 app/components/primer/button_component.html.erb
primer_view_components-0.0.115 app/components/primer/button_component.html.erb
primer_view_components-0.0.114 app/components/primer/button_component.html.erb
primer_view_components-0.0.113 app/components/primer/button_component.html.erb
primer_view_components-0.0.112 app/components/primer/button_component.html.erb
primer_view_components-0.0.111 app/components/primer/button_component.html.erb