Sha256: 4f837f80914735040af690f6c5feef2898893b7159c568d7f11af511579fb99d

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

<%= render(Yattho::Alpha::TabPanels.new(label: "With panels")) do |component| %>
  <% component.with_tab(id: "tab-1", selected: true) do |tab| %>
    <% tab.with_text { "Tab 1" } %>
    <% tab.with_panel do %>
      Panel 1
    <% end %>
  <% end %>
  <% component.with_tab(id: "tab-2") do |tab| %>
    <% tab.with_text { "Tab 2" } %>
    <% tab.with_panel do %>
      Panel 2
    <% end %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yattho_view_components-0.0.1 previews/docs/alpha_tab_panels_preview/default.html.erb