Sha256: 1544078837f34d95ceae98c0b4277ea73848b45ff9818fddcf5b75d42df3dc0d

Contents?: true

Size: 509 Bytes

Versions: 49

Compression:

Stored size: 509 Bytes

Contents

<li class="<%= class_names(
  "SegmentedControl-item",
  "SegmentedControl-item--selected": @selected
  ) %>" role="listitem" data-targets="segmented-control.items">
  <% if @hide_labels %>
    <%= render Primer::Beta::IconButton.new(icon: @icon, "aria-label": @label, **@system_arguments) %>
  <% else %>
    <%= render Primer::Beta::Button.new(**@system_arguments) do |button| %>
      <% button.with_leading_visual_icon(icon: @icon) unless @icon.nil? %>
      <%= @label %>
    <% end %>
  <% end %>
</li>

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
primer_view_components-0.11.0 app/components/primer/alpha/segmented_control/item.html.erb
openproject-primer_view_components-0.12.1 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.10.0 app/components/primer/alpha/segmented_control/item.html.erb
openproject-primer_view_components-0.11.0 app/components/primer/alpha/segmented_control/item.html.erb
openproject-primer_view_components-0.10.0 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.9.0 app/components/primer/alpha/segmented_control/item.html.erb
openproject-primer_view_components-0.9.1 app/components/primer/alpha/segmented_control/item.html.erb
openproject-primer_view_components-0.9.0 app/components/primer/alpha/segmented_control/item.html.erb
openproject-primer_view_components-0.8.0 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.8.0 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.7.0 app/components/primer/alpha/segmented_control/item.html.erb
openproject-primer_view_components-0.7.0 app/components/primer/alpha/segmented_control/item.html.erb
openproject-primer_view_components-0.6.3 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.6.0 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.5.1 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.5.0 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.4.0 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.3.1 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.3.0 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.2.0 app/components/primer/alpha/segmented_control/item.html.erb