Sha256: 59c8fa08e384e7c15beee22195b20408af6ad94383d682a7f1dc061bb3974ec0

Contents?: true

Size: 581 Bytes

Versions: 4

Compression:

Stored size: 581 Bytes

Contents

<table class="w-full hidden <%= table_layout %> <%= @class %>">
  <%= table_header %>
  <tbody class="text-sm">
    <% resources.each do |resource| %>
      <%= table_row(resource, class: 'even:bg-gray-ltr') %>
    <% end %>
  </tbody>
</table>

<div class="md:hidden <%= @class %>">
  <% resources.each_with_index do |resource| %>
    <%= mobile_header(resource, class: 'bg-white border-b border-gray-lt') do %>
      <%= mobile_rows(resource, class: 'flex flex-col space-y-5 mt-5') %>
      <%= link_to_resource(resource, display_as: :button) %>
    <% end %>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
f_components-0.5.0 app/components/f_components/resource_table/component.html.erb
f_components-1.0.0 app/components/f_components/resource_table/component.html.erb
f_components-0.3.0 app/components/f_components/resource_table/component.html.erb
f_components-0.2.1 app/components/f_components/resource_table/component.html.erb