Sha256: 8bcec26e31d590a5de4b64f414dc304d5eba888e312cc74e95fed29a44b55636

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

<%= render(Yattho::Alpha::TabNav.new(label: "With icons and counters")) do |component| %>
  <% component.with_tab(href: "#", selected: true) do |tab| %>
    <% tab.with_icon(icon: :star) %>
    <% tab.with_text { "Item 1" } %>
  <% end %>
  <% component.with_tab(href: "#") do |tab| %>
    <% tab.with_icon(icon: :star) %>
    <% tab.with_text { "Item 2" } %>
    <% tab.with_counter(count: 10) %>
  <% end %>
  <% component.with_tab(href: "#") do |tab| %>
    <% tab.with_text { "Item 3" } %>
    <% tab.with_counter(count: 10) %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yattho_view_components-0.0.1 previews/docs/alpha_tab_nav_preview/with_icons_and_counters.html.erb