Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
react-pagination-lite
Advanced tools
A light weight react pagination component built using react hooks and styled using flex layout.It comes with minimal pagination,css configuration.
A light weight react pagination component built using react hooks and styled using flex layout.It comes with minimal pagination, css configuration.
https://hdhami.github.io/react-pagination-lite.html
npm install react-pagination-lite --save
import React, { useState } from 'react';
import { render } from 'react-dom';
import Pagination from 'react-pagination-lite';
const PaginationDemo = () => {
const [activePage, setActivePage] = useState(1);
return (
<Pagination
range={3}
activePage={activePage}
totalCount={27}
itemsPerPage={5}
onPaginate={pageId => {
setActivePage(pageId);
}}
styles={{
navigationBtns: {
activeIconColor: '#000',
inactiveIconColor: '#b5b5b5',
borderColor: '#eeeeee'
},
paginationCells: {
padding: '0 12px',
activeBgColor: '#92a772',
inactiveBgColor: '#f2f2f2',
textColor: '#000000'
}
}}
/>
);
};
render(<PaginationDemo />, document.getElementById('root'));
Attributes | Type | Default | Description |
---|---|---|---|
range | number | 3 | number of pagination blocks to be shown at a time |
activePage | number | 1 | active page id |
totalCount | number | `` | total number of records to be shared across pages |
itemsPerPage | number | 5 | records to be shown on a page |
onPaginate | function | `` | callback to be invoked on page change |
styles | object | `` | styles for pagination cell, next, prev navigation |
=======================
=======================
=======================
Please see LICENSE for details.
FAQs
A light weight react pagination component built using react hooks and styled using flex layout.It comes with minimal pagination,css configuration.
The npm package react-pagination-lite receives a total of 1 weekly downloads. As such, react-pagination-lite popularity was classified as not popular.
We found that react-pagination-lite 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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.