@abasb75/paginate
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

demo

@abasb75/paginate react js paginate

add to reactjs :

npm install @abasb75/paginate --save

usage example :

import Paginate from "@abasb75/paginate";

import { useState } from 'react';


function App() {

  const [activePage,setActivePage] = useState(1);
  const pageRangeDisplayed = 4;

  return (<>
    <h1>page : {activePage}</h1>

    <Paginate
      activePage={activePage}
      lastPage={10}
      pageRangeDisplayed={pageRangeDisplayed}
      onChange={setActivePage}

    />
    
  </>
    
    
  );
}

export default App;

props :

Properties

Property PropType Required Default Description
activePage number 1
lastPage number 1
pageRangeDisplayed number 4
onChange func ()=>{}
listClassName string 'ab-paginate-list-2857373'
itemClassName string 'ab-paginate-item-1683646'
nextClassName string 'ab-paginate-next-1837342'
previousClassName string 'ab-paginate-prev-5567886'
firstClassName string 'ab-paginate-first-3873878'
lastClassName string 'ab-paginate-last-8866568'
disabledFirstClassName string 'ab-paginate-dfirst-3203808'
disabledLastClassName string 'ab-paginate-dlast-8843780'
disabledPreviousClassName string 'ab-paginate-prev-4034800'
disabledNextClassName string 'ab-paginate-next-1324686'
activeItemClassName string 'ab-paginate-actv-5623876'
breakClassName string 'ab-paginate-brek-4343078'
showNextPage bool true
showPreviousPage bool true
showFirstPage bool true
showLastPage bool true
nextPageLabel string '>'
previousPageLabel string '<'
firstPageLabel string '<<'
lastPageLabel string '>>'
breakLabel string '...'
buttonRounded none normal quarter full normal
buttonWidth number 42
buttonHeight buttonHeight 42

/@abasb75/paginate/

    Package Sidebar

    Install

    npm i @abasb75/paginate

    Weekly Downloads

    20

    Version

    0.1.1

    License

    ISC

    Unpacked Size

    16 kB

    Total Files

    5

    Last publish

    Collaborators

    • abasb75