Skip to content

Custom Paginator

Custom Paginator

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

PropertyValue
Arrow Size24×24px
Page Number Fontfont-poppins-regular, 14px (mobile), 16px (desktop)
Active Page Colortext-primary-tselRed
Default Text Colortext-primary-darkBlue
Ellipsis Stylespan.ellipsis
Gap16px (gap-4)

Displays standard page numbers 1-N. Active page highlighted with red.

Standard Variant

Includes … for truncated page ranges when total pages exceed display threshold.

Ellipsis Variant
OptionTypeDescription
pagesarrayArray of page numbers or ... ellipsis
currentPagenumberCurrently selected page index
chevronClick(dir)methodHandles left/right arrow navigation
goToPage(page)methodNavigates to selected page
stateColorArrowPage(dir)methodDynamically returns arrow fill color
FeatureDescription
ArrowsDynamic viewBox: Left (24x24), Right (16x16)
EllipsisRendered as <span>...</span> when page === '...'
Active StatecurrentPage === page triggers text-primary-tselRed
Color LogicArrows fill calculated by stateColorArrowPage(dir)
  • Data tables
  • Search results
  • Product listings
  • Article feeds
✅ Do❌ Don’t
Show current positionLost in pagination
Reasonable page countsToo many pages
Direct page accessNext/prev only
Maintain stateLost page on reload

View in Storybook →