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.5.4 app/components/lookbook/page_tabs/component.html.erb
lookbook-2.0.0.beta.2 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.5.3 app/components/lookbook/page_tabs/component.html.erb
lookbook-2.0.0.beta.1 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.5.2 app/components/lookbook/page_tabs/component.html.erb
lookbook-2.0.0.beta.0 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.5.1 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.5.0 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.4.5 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.4.4 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.4.3 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.4.2 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.4.1 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.4.0 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.3.4 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.3.3 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.3.1 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.3.0 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.2.1 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.2.0 app/components/lookbook/page_tabs/component.html.erb