Sha256: 5a3f140d23a0ce25e55f98e7729b086e7b6131e9bf307930cd6c7b1264260b1a

Contents?: true

Size: 1023 Bytes

Versions: 24

Compression:

Stored size: 1023 Bytes

Contents

<%= render Ariadne::BaseComponent.new(tag: :ul, classes: @classes, attributes: @attributes) do |grid| %>
  <% items.each do |item| %>
    <li class="<%= item.classes %> <%= item.has_href? ? Ariadne::GridComponent::DEFAULT_LINK_COLOR_CLASSES : "ariadne-bg-white" %>">
      <% if item.has_href? %>
        <%= render Ariadne::LinkComponent.new(href: item.href) 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

24 entries across 24 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.12 app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.12-x86_64-linux app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.12-x86_64-darwin app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.12-x64-mingw32 app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.12-x64-mingw-ucrt app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.12-arm64-darwin app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.12-aarch64-linux app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.11 app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.11-x86_64-linux app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.11-x86_64-darwin app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.11-x64-mingw32 app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.11-x64-mingw-ucrt app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.11-arm64-darwin app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.11-aarch64-linux app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.10 app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.10-x86_64-linux app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.10-x86_64-darwin app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.10-x64-mingw32 app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.10-x64-mingw-ucrt app/components/ariadne/grid_component.html.erb
ariadne_view_components-0.0.10-arm64-darwin app/components/ariadne/grid_component.html.erb