Sha256: 84e32eb0c16289eb78d6f20e9fd127fe7974a8a343fa1aca8035fda74e419a22

Contents?: true

Size: 556 Bytes

Versions: 7

Compression:

Stored size: 556 Bytes

Contents

<%= render Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes) do |list| %>
  <% items.each do |item| %>
    <%= render Ariadne::BaseComponent.new(tag: :li, classes: item.classes, attributes: item.attributes) do %>
      <% if item.linked? %>
        <%= render Ariadne::LinkComponent.new(href: item.link[:href], classes: item.link[:classes], attributes: item.link[:attributes]) do %>
          <%= item.entry %>
        <% end %>
      <% else %>
        <%= item.entry %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.13 app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.13-x86_64-linux app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.13-x86_64-darwin app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.13-x64-mingw32 app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.13-x64-mingw-ucrt app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.13-arm64-darwin app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.13-aarch64-linux app/components/ariadne/list_component.html.erb