![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
react-bootstrap-pagination-control
Advanced tools
This component automatically controls the pagination display.
This component automatically controls the pagination display.
npm install react-bootstrap-pagination-control
Component usage example.
import 'bootstrap/dist/css/bootstrap.min.css';
import React, { useState } from 'react';
import { PaginationControl } from 'react-bootstrap-pagination-control';
export default () => {
const [page, setPage] = useState(1)
return <PaginationControl
page={page}
between={4}
total={250}
limit={20}
changePage={(page) => {
setPage(page)
}}
ellipsis={1}
/>
}
You can see a interative component in Storybook.
Name | Type | Default | Description |
---|---|---|---|
page | number | 1 | Active page |
between | number | 3 | Max itens in left and right when page is in center, it's minimum value is 1 |
total | number | - | Required. Total of itens |
limit | number | - | Required. Max itens per page |
changePage | number => any | page => console.log(page) | Function that will receive the page nunber when click |
next | boolean | true | Control if prev and next actions will be displayed |
last | boolean | false | Control if fist and last actions will be displayed |
ellipsis | number | 0 | Number itens after ellipsis, its maximum value is equal (between - 2) |
MIT
FAQs
This component automatically controls the pagination display.
We found that react-bootstrap-pagination-control 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.