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

Version Path
ariadne_view_components-0.0.88 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.87 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.9 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.8 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.7 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.6 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.5 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.4 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.3 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.2 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86.1 app/components/ariadne/ui/pagination/component.html.erb
ariadne_view_components-0.0.86 app/components/ariadne/ui/pagination/component.html.erb