Sha256: a9e93275a38dd9b9f9167d550c1503950083b57bf717811a0fcbd00dbed782f7
Contents?: true
Size: 935 Bytes
Versions: 2
Compression:
Stored size: 935 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 : "bg-white" %>"> <% if item.has_href? %> <%= render Ariadne::LinkComponent.new(href: item.href) do %> <%= item.entry %> <% end %> <% if item.actions.any? %> <div> <div class="-mt-px flex divide-x"> <% item.actions.each_with_index do |action, idx| %> <div class="<%= idx.zero? ? '' : '-ml-px ' %>w-0 flex-1 flex"> <%= action %> </div> <% end %> </div> </div> <% end %> <% else %> <div class="flex-1 flex flex-col p-8"> <%= item.entry %> </div> <% end %> </li> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ariadne_view_components-0.0.6 | app/components/ariadne/grid_component.html.erb |
ariadne_view_components-0.0.5 | app/components/ariadne/grid_component.html.erb |