Hudoro pagination is a strict and customizable pagination component for web development projects, designed for simplicity and adherence to strict design guidelines.
Instal package using pnpm
pnpm add @hudoro/pagination
Instal package using yarn
yarn add @hudoro/pagination
Instal package using npm
npm i @hudoro/pagination
import React from "react";
import {Pagination} from "@hudoro/pagination";
import ReactDOM from "react-dom/client";
import {useState} from "react";
const App = () => {
const [currentPage, setCurrentPage] = useState(1);
return (
<div>
<h1>Pagination Progress Component</h1>
<Pagination
currentPage={currentPage}
onPageChange={(e) => setCurrentPage(e)}
totalCount={100}
/>
</div>
);
};
ReactDOM.createRoot(document.getElementById("app")!).render(<App />);
Prop Name | Value | required |
---|---|---|
totalCount | number | true |
siblingCount | number | false |
currentPage | number | true |
onPageChange | (page: number) => void | true |