%= render(Primer::BaseComponent.new(tag: :li, **@system_arguments)) do %>
<%= render(@form_wrapper) do %>
<%= tooltip %>
<%= render(Primer::BaseComponent.new(**@content_arguments)) do %>
<% if private_leading_action_icon %>
<%= private_leading_action_icon %>
<% end %>
<% if list.select_variant == :single || list.select_variant == :multiple %>
<%= render(Primer::Beta::Octicon.new(icon: :check, classes: "ActionListItem-singleSelectCheckmark")) %>
<% elsif list.select_variant == :multiple_checkbox %>
<% end %>
<% if leading_visual %>
<%= leading_visual %>
<% 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? %>
<%= description %>
<% end %>
<% end %>
<% if trailing_visual %>
<%= trailing_visual %>
<% end %>
<% if private_trailing_action_icon %>
<%= private_trailing_action_icon %>
<% end %>
<% end %>
<% end %>
<% if trailing_action %>
<%= trailing_action %>
<% end %>
<%= private_content %>
<% end %>