toodle-pagination
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Toodle Pagination

Table of Contents

Installation

To install, you can use npm or yarn:

$ npm install toodle-pagination
$ yarn add toodle-pagination

Example

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;

Package Sidebar

Install

npm i toodle-pagination

Weekly Downloads

1

Version

0.1.2

License

none

Unpacked Size

17 kB

Total Files

32

Last publish

Collaborators

  • tanvirstreame