Sha256: a7cb126fb3daa60ab0f4ee34d6b0f29ef633dd8ed39842277b430f582e5cdc17

Contents?: true

Size: 759 Bytes

Versions: 1

Compression:

Stored size: 759 Bytes

Contents

<%= render(Yattho::Alpha::NavList.new(selected_item_id: :personal_info)) do |component| %>
  <% component.with_section(aria: { label: "Settings" }) do |section| %>
    <% section.with_item(label: "General", selected_by_ids: :general, href: "/settings/general") %>
  <% end %>
  <% component.with_section(aria: { label: "Account settings" }) do |section| %>
    <% section.with_heading(title: "Account Settings") %>
    <% section.with_item(label: "Personal Information", selected_by_ids: :personal_info, href: "/account/info") %>
    <% section.with_item(label: "Password", selected_by_ids: :password, href: "/account/password") %>
    <% section.with_item(label: "Billing info", selected_by_ids: :billing, href: "/account/billing") %>
  <% 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/items_and_headings.html.erb