Sha256: e61fff6dd4732c1fe095ba363c190d71688d1d9a802ae3cc1254b0ba13fa8752

Contents?: true

Size: 611 Bytes

Versions: 22

Compression:

Stored size: 611 Bytes

Contents

 <%= render_component_tag "x-data": "{ activeTab: null }" do %>
  <div class="flex w-full border-b border-lookbook-divider mb-6">
    <%= lookbook_render :tabs, theme: :page do |t| %>
      <% @tabs.each do |props| %>
        <%= t.tab **props %>
      <% end %>
    <% end %>
  </div>
  <%= lookbook_render :tab_panels do |t| %>
    <% @tabs.each do |props| %>
      <% t.panel name: props[:name] do %>
        <%= lookbook_render :prose, markdown: props[:markdown], class: "max-w-none flex-none" do %>
          <%== props[:tab_content] %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
lookbook-1.1.1 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.1.0 app/components/lookbook/page_tabs/component.html.erb