x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<div class="p-8 flex flex-col gap-6"> <nav class="midwest-pagination variant-arrows" aria-label="Pagination"> <span class="midwest-pagination-btn is-prev is-disabled" aria-disabled="true" aria-label="Previous page"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Arrow back"><title>Arrow back</title> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M244 400L100 256l144-144M120 256h292"></path></svg> </div> </div> </span> <span class="midwest-pagination-current" aria-live="polite">Page 1 of 10</span> <a class="midwest-pagination-btn is-next" aria-label="Go to next page" href="/posts?page=2"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Arrow forward"><title>Arrow forward</title> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M268 112l144 144-144 144M392 256H100"></path></svg> </div> </div> </a> </nav> <nav class="midwest-pagination variant-arrows" aria-label="Pagination"> <a class="midwest-pagination-btn is-prev" aria-label="Go to previous page" href="/posts?page=4"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Arrow back"><title>Arrow back</title> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M244 400L100 256l144-144M120 256h292"></path></svg> </div> </div> </a> <span class="midwest-pagination-current" aria-live="polite">Page 5 of 10</span> <a class="midwest-pagination-btn is-next" aria-label="Go to next page" href="/posts?page=6"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Arrow forward"><title>Arrow forward</title> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M268 112l144 144-144 144M392 256H100"></path></svg> </div> </div> </a> </nav> <nav class="midwest-pagination variant-arrows" aria-label="Pagination"> <a class="midwest-pagination-btn is-prev" aria-label="Go to previous page" href="/posts?page=9"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Arrow back"><title>Arrow back</title> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M244 400L100 256l144-144M120 256h292"></path></svg> </div> </div> </a> <span class="midwest-pagination-current" aria-live="polite">Page 10 of 10</span> <span class="midwest-pagination-btn is-next is-disabled" aria-disabled="true" aria-label="Next page"> <div class="midwest-icon " aria-hidden="true"> <div class="midwest-icon-inner"> <svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Arrow forward"><title>Arrow forward</title> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M268 112l144 144-144 144M392 256H100"></path></svg> </div> </div> </span> </nav></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div class="p-8 flex flex-col gap-6"> <%# On first page — previous disabled %> <%= midwest_pagination( current_page: 1, total_pages: 10, variant: :arrows, page_url: ->(p) { "/posts?page=#{p}" } ) %> <%# In the middle %> <%= midwest_pagination( current_page: 5, total_pages: 10, variant: :arrows, page_url: ->(p) { "/posts?page=#{p}" } ) %> <%# On last page — next disabled %> <%= midwest_pagination( current_page: 10, total_pages: 10, variant: :arrows, page_url: ->(p) { "/posts?page=#{p}" } ) %></div>Arrows Only
Minimal variant — previous and next arrows with a "Page X of Y" label. Ideal for simple sequential navigation where page-number links are not needed.
No params configured.
No assets to display.
Add a .js or .css file alongside the component to see it here.
Figma embed for Pagination/arrows_only
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."