Components
Pagination

Pagination

Pagination with page navigation, next and previous links.

Usage

Pagination component is built on top of RC-Pagination (opens in a new tab)

import { Pagination } from from "@momo-webplatform/mobase";
<Pagination current={currentPage} total={20} onChange={handlePageChange} />

NOTE: Because Pagination uses Icon Button Variants, please install the Icon Button component before using the Pagination component.

API Reference

Pagination
PropTypeDefaultRequired
current
number--true
total
number--true
onChange
(page: number) => void--true