
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.