Sha256: 0c49d00ee9bc7b0ea9ea27e9ebb57f0d70d670ebc4eff63824eba34942bd91c3

Contents?: true

Size: 890 Bytes

Versions: 157

Compression:

Stored size: 890 Bytes

Contents

<%= render Ariadne::BaseComponent.new(tag: :ul, classes: @classes, attributes: @attributes) do |grid| %>
  <% items.each do |item| %>
    <li class="<%= item.classes %>">
      <% if item.link? %>
        <%= render(item.link) do %>
          <%= item.entry %>
        <% end %>
        <% if item.actions.any? %>
          <div>
            <div class="ariadne--mt-px ariadne-flex ariadne-divide-x">
              <% item.actions.each_with_index do |action, idx| %>
                <div class="<%= idx.zero? ? '' : 'ariadne--ml-px ' %>w-0 ariadne-flex-1 ariadne-flex">
                  <%= action %>
                </div>
              <% end %>
            </div>
          </div>
        <% end %>
      <% else %>
        <div class="ariadne-flex-1 ariadne-flex ariadne-flex-col ariadne-p-8">
          <%= item.entry %>
        </div>
      <% end %>
    </li>
  <% end %>
<% end %>

Version data entries

157 entries across 157 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.59-x64-mingw-ucrt app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.59-aarch64-linux app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.59-x86_64-darwin app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.59-x86_64-linux app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.59-arm64-darwin app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.59 app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.58-x86_64-darwin app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.58-aarch64-linux app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.58-arm64-darwin app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.58-x64-mingw-ucrt app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.58 app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.58-x86_64-linux app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.57-arm64-darwin app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.57-aarch64-linux app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.57-x86_64-darwin app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.57-x86_64-linux app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.57-x64-mingw-ucrt app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.57 app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.55-x86_64-linux app/components/ariadne/grid_component/grid_component.html.erb
ariadne_view_components-0.0.55-arm64-darwin app/components/ariadne/grid_component/grid_component.html.erb