Skip to content

Custom Paginator

Custom Paginator

Custom Paginator displays page numbers with navigation arrows and ellipsis for large page counts.

PropertyValue
Page Button Size32-40px
Border Radius4-8px
Font Size14-16px
Active Color#001A41
Disabled Color#99A0A7
Gap4-8px

Previous disabled, 1 highlighted

Both arrows enabled, current shown

Next disabled, last highlighted

Ellipsis shown for hidden pages

| currentPage | number | 1 | Active page (1-based) | | totalPages | number | 1 | Total page count |

Total PagesDisplay Pattern
≤5All pages shown
6+Current page ± 2, with 1…N at ends
CurrentTotalDisplay
1101 2 3 4 5 ... 10
5101 ... 3 4 5 6 7 ... 10
10101 ... 6 7 8 9 10
ArrowConditionColor
PreviouscurrentPage > 1#001A41
PreviouscurrentPage === 1#99A0A7
NextcurrentPage < totalPages#001A41
NextcurrentPage === totalPages#99A0A7
  • Data tables
  • Search results
  • Product listings
  • Article feeds
✅ Do❌ Don’t
Show current positionLost in pagination
Disable end arrowsConfusing navigation
Reasonable page countsToo many pages
Direct page accessNext/prev only
Maintain stateLost page on reload