0.0.1-beta.7 • Published 1 year ago

@hudoro/pagination v0.0.1-beta.7

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Hudoro pagination

Hudoro pagination is a strict and customizable pagination component for web development projects, designed for simplicity and adherence to strict design guidelines.

Screenshots

App Screenshot

Package instalation

Instal package using pnpm

  pnpm add @hudoro/pagination

Instal package using yarn

  yarn add @hudoro/pagination

Instal package using npm

  npm i @hudoro/pagination

Usage/Examples (you can combine using icon package hudoro)

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 />);

Props @hudoro/pagination

Props that you can pass to <Pagination {...props} />

Prop NameValuerequired
totalCountnumbertrue
siblingCountnumberfalse
currentPagenumbertrue
onPageChange(page: number) => voidtrue
0.0.1-beta.7

1 year ago

0.0.1-beta.6

1 year ago

0.0.1-beta.5

1 year ago

0.0.1-beta.4

1 year ago

0.0.1-beta.3

1 year ago

0.0.1-beta.2

1 year ago

0.0.1-beta.1

1 year ago

0.0.1-beta.0

1 year ago