Sha256: 0d7abc0269214b74595210a67e6200e3c49d9086ee2f5b89009ecc95b21204bb

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

Stored size: 694 Bytes

Contents

<%= render(Yattho::Alpha::NavList.new) do |component| %>
  <% component.with_section(aria: { label: "Favorite foods" }) do |section| %>
    <% section.with_heading(title: "My Favorite Foods") %>
    <% section.with_item(label: "Popplers", selected_by_ids: :popplers, href: "/foods/popplers") do |item| %>
      <% item.with_trailing_action(show_on_hover: false, icon: "plus", "aria-label": "Add new food", size: :medium) %>
    <% end %>
    <% section.with_item(label: "Slurm", selected_by_ids: :slurm, href: "/foods/slurm") do |item| %>
      <% item.with_trailing_action(show_on_hover: true, icon: "plus", "aria-label": "Add new food", size: :medium) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yattho_view_components-0.0.1 previews/docs/alpha_nav_list_preview/trailing_action.html.erb