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.1.9 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.8 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.7 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.6 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.5 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.4 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.3 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.2 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.1 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.1.0 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.123 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.122 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.121 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.120 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.119 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.118 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.117 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.116 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.115 app/components/primer/alpha/segmented_control/item.html.erb
primer_view_components-0.0.114 app/components/primer/alpha/segmented_control/item.html.erb