Socket
Book a DemoInstallSign in
Socket

@abasb75/paginate

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abasb75/paginate

react js paginate

0.1.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

PropertyPropTypeRequiredDefaultDescription
activePagenumber1
lastPagenumber1
pageRangeDisplayednumber4
onChangefunc()=>{}
listClassNamestring'ab-paginate-list-2857373'
itemClassNamestring'ab-paginate-item-1683646'
nextClassNamestring'ab-paginate-next-1837342'
previousClassNamestring'ab-paginate-prev-5567886'
firstClassNamestring'ab-paginate-first-3873878'
lastClassNamestring'ab-paginate-last-8866568'
disabledFirstClassNamestring'ab-paginate-dfirst-3203808'
disabledLastClassNamestring'ab-paginate-dlast-8843780'
disabledPreviousClassNamestring'ab-paginate-prev-4034800'
disabledNextClassNamestring'ab-paginate-next-1324686'
activeItemClassNamestring'ab-paginate-actv-5623876'
breakClassNamestring'ab-paginate-brek-4343078'
showNextPagebooltrue
showPreviousPagebooltrue
showFirstPagebooltrue
showLastPagebooltrue
nextPageLabelstring'>'
previousPageLabelstring'<'
firstPageLabelstring'<<'
lastPageLabelstring'>>'
breakLabelstring'...'
buttonRoundednone normal quarter fullnormal
buttonWidthnumber42
buttonHeightbuttonHeight42

Keywords

paginate

FAQs

Package last updated on 08 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.