Sha256: 4e243b17323aba7862889e6d027416230d482582d927a461512377aec7d008e3
Contents?: true
Size: 894 Bytes
Versions: 12
Compression:
Stored size: 894 Bytes
Contents
<nav role="navigation" aria-label="<%= label %>"> <div class="[grid-area:pages] flex justify-center"> <ul class="inline-flex items-baseline justify-start gap-2"> <% page_links.each do |page| %> <li> <% if page.nil? %> <span aria-hidden>…</span> <% else %> <%= render UI::Button::Component.new( as: :link, theme: :ghost, state: page == current_page ? 'active' : '', href: callback_page_url.call(page), html_attrs: { "aria-current": page == current_page ? 'true' : 'false', "aria-label": goto_label, data: { turbo: false }, } ) do %> <%= page %> <% end %> <% end %> </li> <% end %> </ul> </div> </nav>
Version data entries
12 entries across 12 versions & 1 rubygems