Pagination example
With custom aria label
How it looks (preview)
How to call this example
<%= render "components/pagination", {
aria_label: "Search results",
previous_href: "/page/1",
next_href: "/page/3",
items: [
{
href: "/page/1"
},
{
href: "/page/2",
current: true
},
{
href: "/page/3"
}
]
} %>