@starasia/pagination
v1.0.0
Published
pagination component for starasia UI
Keywords
Readme
starasia pagination
starasia pagination is a strict and customizable pagination component for web development projects, designed for simplicity and adherence to strict design guidelines.
Screenshots

Package instalation
Instal package using pnpm
pnpm add @starasia/paginationInstal package using yarn
yarn add @starasia/paginationInstal package using npm
npm i @starasia/paginationUsage/Examples (you can combine using icon package starasia)
import React from "react";
import {Pagination} from "@starasia/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 />);
Props @starasia/pagination
Props that you can pass to <Pagination {...props} />
| Prop Name | Value | required | | :----------- | :--------------------- | :------- | | totalCount | number | true | | siblingCount | number | false | | currentPage | number | true | | onPageChange | (page: number) => void | true |
