0.1.2 • Published 1 year ago

toodle-pagination v0.1.2

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

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;