Sha256: 473e6728a229e5fea8b012d1980e3e67ef8db80843d8da7384163bcf81d48d92

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

<%= render(Yattho::Alpha::Menu.new) do |component| %>
  <% component.with_heading(tag: :h2) do %>
    Heading
  <% end %>
  <% component.with_item(selected: true, href: "#url") do %>
    Item 1
  <% end %>
  <% component.with_item(href: "#url") do %>
    <%= render(Yattho::Beta::Octicon.new("check")) %>
    With Icon
  <% end %>
  <% component.with_item(href: "#url") do %>
    <%= render(Yattho::Beta::Octicon.new("check")) %>
    With Icon and Counter
    <%= render(Yattho::Beta::Counter.new(count: 25)) %>
  <% end %>
<% end %>

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 previews/yattho/alpha/menu_preview/default.html.erb
yattho_view_components-0.1.1 previews/yattho/alpha/menu_preview/playground.html.erb
yattho_view_components-0.0.1 previews/yattho/alpha/menu_preview/default.html.erb
yattho_view_components-0.0.1 previews/yattho/alpha/menu_preview/playground.html.erb