Sha256: 589aec2f16b6a34ff5ed4f1445f9c5919189c8fc87dadeb57899797584b25245

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

<%= render(Yattho::Alpha::UnderlinePanels.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 %>
  <% component.with_actions do %>
    <%= render(Yattho::ButtonComponent.new) { "Button!" } %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

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