Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@doctolib/react-paginator
Advanced tools
Basic paginator component for React. This component is designed to be used with Bootstrap but you can use it with your own style.
npm install @doctolib/react-paginator
class MyComponent extends React.Component {
state = { page: 1 }
onPageChange = (page) => this.setState({page})
render() {
return (
<Paginator
nbRowsPerPage={20}
onPageChange={this.onPageChange}
page={this.state.page}
total={200}
/>
);
}
}
Display a condensed version of the paginator.
<Paginator
condensed
nbRowsPerPage={20}
page={1}
total={200}
/>
You can specify the size to display the paginator, values accepted are small, medium, large. Default is medium.
<Paginator
nbRowsPerPage={20}
page={1}
size="small"
total={200}
/>
Display additionnal informations next to paginator (ex: 181-200 / 300).
<Paginator
nbRowsPerPage={20}
page={1}
showInfos
total={200}
/>
You can use custom labels for the paginator:
<Paginator
breakLabel="..."
firstAriaLabel="Premier"
firstLabel="<<"
lastAriaLabel="Dernier"
lastLabel=">>"
nbRowsPerPage={20}
nextAriaLabel="Suivant"
nextLabel=">"
page={1}
previousAriaLabel="Précédent"
previousLabel="<"
total={300}
/>
The paginator can be displayed in disabled mode.
<Paginator
disabled
nbRowsPerPage={20}
page={1}
total={200}
/>
MIT
FAQs
Basic paginator component for React.
The npm package @doctolib/react-paginator receives a total of 6 weekly downloads. As such, @doctolib/react-paginator popularity was classified as not popular.
We found that @doctolib/react-paginator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.