Sha256: 33ca4fb6c82f8b3602dfaaf870890272227428831691bb299e51f4019aabbe2f

Contents?: true

Size: 555 Bytes

Versions: 5

Compression:

Stored size: 555 Bytes

Contents

<div data-id="<%= @id %>" class="tabs" data-controller="tabs">

  <div
    class="
      flex
      items-center
      gap-4
      mb-2
      w-full
      border-b-2
      border-solid
      border-gray-200
    "
  >
    <% @tabs.each_with_index do |tab, index| %>
      <button
        class="border-b-2 border-solid mb-[-2px] font-semibold"
        data-action="tabs#switchTab"
        data-tab-index="<%= index %>"
      >
        <%= tab %>
      </button>
    <% end %>
  </div>

  <div class="tab-content hidden">
    <%= content %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
railwind-0.1.26 lib/railwind/generators/templates/tabs/_tab_component.html.erb
railwind-0.1.25 lib/railwind/generators/templates/tabs/_tab_component.html.erb
railwind-0.1.24 lib/railwind/generators/templates/tabs/_tab_component.html.erb
railwind-0.1.23 lib/railwind/generators/templates/tabs/_tab_component.html.erb
railwind-0.1.22 lib/railwind/generators/templates/tabs/_tab_component.html.erb