Back to Pagy

Navs

docs/_includes/options/navs.md

43.5.3502 B
Original Source

id: 'my-nav' : Set the id HTML attribute of the nav tag.

aria_label: 'My Label' : Override the default pagy.aria_label.nav string of the aria-label attribute. See ARIA

!!!danger The nav elements are landmark roles, and should be distinctly labeled!

!!!success Override the default :aria_labels for multiple navs with distinct values!

erb
<%# Explicitly set the aria_label %>
<%== @pagy.series_nav(aria_label: 'Search result pages') %>