To install, you can use npm or yarn:
$ npm install toodle-pagination
$ yarn add toodle-pagination
Here is a simple example of toodle-pagination
import Pagination from "toodle-pagination";
const App = () => {
const handlePageNumber = (value) => {
console.log("value", value);
}
return (
<div className="App">
<Pagination
nextLabel="next >"
previousLabel="< previous"
pageRangeDisplayed={10}
total={10}
handlePageNumber={handlePageNumber} />
</div>
);
}
export default App;