Sha256: 75d35469f9b0dacad2030ad1651cfd2034ae7f33163b159dbbda3c827f674ef8

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

<%= render(Primer::BaseComponent.new(tag: :li, **@system_arguments)) do %>
  <%= render(Primer::BaseComponent.new(**@content_arguments)) do %>
    <% if private_leading_action_icon %>
      <span class="ActionListItem-visual ActionListItem-action--leading">
        <%= private_leading_action_icon %>
      </span>
    <% end %>
    <% if leading_visual %>
      <span class="ActionListItem-visual ActionListItem-visual--leading">
        <%= leading_visual %>
      </span>
    <% end %>
    <%= render(Primer::ConditionalWrapper.new(condition: description?, tag: :span, **@description_wrapper_arguments)) do %>
      <%= render(Primer::BaseComponent.new(tag: :span, **@label_arguments)) do %>
        <%= @label || content %>
      <% end %>
      <% if description? %>
        <span class="ActionListItem-description">
          <%= description %>
        </span>
      <% end %>
    <% end %>
    <% if trailing_visual %>
      <span class="ActionListItem-visual ActionListItem-visual--trailing">
        <%= trailing_visual %>
      </span>
    <% end %>
    <% if private_trailing_action_icon %>
      <span class="ActionListItem-visual ActionListItem-action--trailing">
        <%= private_trailing_action_icon %>
      </span>
    <% end %>
  <% end %>
  <%= tooltip %>
  <% if trailing_action %>
    <%= trailing_action %>
  <% end %>
  <%= private_content %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
primer_view_components-0.1.4 app/components/primer/alpha/action_list/item.html.erb
primer_view_components-0.1.3 app/components/primer/alpha/action_list/item.html.erb