Sha256: 3e7002076d93cd2527e94235fdb18ea652a39525726b88bc316bcaefaea46a15

Contents?: true

Size: 608 Bytes

Versions: 4

Compression:

Stored size: 608 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.4 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.0.0.beta.3 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.0.0.beta.2 app/components/lookbook/page_tabs/component.html.erb
lookbook-1.0.0.beta.1 app/components/lookbook/page_tabs/component.html.erb