Sha256: 0f66d0f7bdcf3f9c76b46cf47b1b1527f5f87581768912b56ad9ddf067cecc2c

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

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

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
primer_view_components-0.0.116 previews/primer/alpha/menu_preview/default.html.erb
primer_view_components-0.0.116 previews/primer/alpha/menu_preview/playground.html.erb
primer_view_components-0.0.115 previews/primer/alpha/menu_preview/default.html.erb
primer_view_components-0.0.115 previews/primer/alpha/menu_preview/playground.html.erb