Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-responsive-pagination

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-responsive-pagination - npm Package Compare versions

Comparing version 2.2.0-beta.1 to 2.2.0-beta.2

themes/classic-light.css

7

CHANGELOG.md
# React Responsive Pagination Changelog
# [2.2.0-beta.2](https://github.com/jonelantha/react-responsive-pagination/compare/v2.2.0-beta.1...v2.2.0-beta.2) (2023-04-15)
### Features
* Themes ([77f08f6](https://github.com/jonelantha/react-responsive-pagination/commit/77f08f6c4c8ed977843e576e1b2b89323afc42c9))
# [2.2.0-beta.1](https://github.com/jonelantha/react-responsive-pagination/compare/v2.1.0...v2.2.0-beta.1) (2023-04-13)

@@ -4,0 +11,0 @@

2

package.json
{
"name": "react-responsive-pagination",
"version": "2.2.0-beta.1",
"version": "2.2.0-beta.2",
"description": "React component for responsive pagination",

@@ -5,0 +5,0 @@ "author": "jonelantha",

@@ -10,20 +10,17 @@ # React Responsive Pagination

A responsive React pagination component which intelligently renders to the available width - for React 16, 17 or 18
An accessible responsive React pagination component which intelligently renders to the available width - for React 16, 17 or 18
### 📕 Visit [https://react-responsive-pagination.elantha.com](https://react-responsive-pagination.elantha.com) to get started 🚀
✅ Ready to go themes or bring your own css
✅ Bootstrap 4 & 5 support built-in
✅ Fully accessible with aria tags for screen readers
✅ Modern hook based architecture, optimised for tree-shaking and small bundle sizes
### ⭐️ v1 user? See the [v1 migration guide](https://react-responsive-pagination.elantha.com/migration) to start using v2 ⭐️
**📕 Visit [https://react-responsive-pagination.elantha.com](https://react-responsive-pagination.elantha.com) to get started 🚀**
### ⚡️ [LIVE DEMO - try it out for yourself!](https://react-responsive-pagination.elantha.com/live-demo/) ⚡️
v1 user? See the [v1 migration guide](https://react-responsive-pagination.elantha.com/migration) to start using v2
<a href="https://react-responsive-pagination.elantha.com/"><img src="./react-responsive-pagination.gif?raw=true" width="985" alt="react-responsive-pagination example" /></a>
## 🥾 Bootstrap 4 and 5 support included
### ⚡️ [LIVE DEMO - try it out for yourself!](https://react-responsive-pagination.elantha.com/live-demo/) ⚡️
Using Bootstrap? See the [Bootstrap Getting Started Guide](https://react-responsive-pagination.elantha.com/bootstrap-pagination/)
## 🎨 Custom styling
Custom styles? No problem - see the [Custom Styles Guide](https://react-responsive-pagination.elantha.com/custom-styled-pagination/)
## ⏳ Quick Start

@@ -38,8 +35,8 @@

import ResponsivePagination from 'react-responsive-pagination';
// make sure appropriate css is included in the project:
// see css sample below (or import Bootstrap styles)
import 'react-responsive-pagination/themes/classic-light.css';
// 👆 classic theme, see below for other theme / css options
function MyApp() {
const [currentPage, setCurrentPage] = useState(4);
const totalPages = 17;
const [currentPage, setCurrentPage] = useState(8);
const totalPages = 20;

@@ -56,31 +53,28 @@ return (

Basic css example, see [Custom Styles Guide](https://react-responsive-pagination.elantha.com/custom-styled-pagination/) for more examples or [use Bootstrap styles](https://react-responsive-pagination.elantha.com/)
## 🦄 Three ways to style:
```css
.pagination {
justify-content: center;
display: flex;
padding-left: 0;
list-style: none;
}
1. 🖼️ **Pre-built themes (NEW!)**
.page-link {
display: block;
border: 1px solid #cccccc;
border-radius: 5px;
padding: 5px 10px;
margin: 0 2px;
text-decoration: none;
}
Just import one of the css themes into your project (as shown in the quickstart example above)
a.page-link:hover {
background-color: #cccccc;
}
```
import 'react-responsive-pagination/themes/classic-light.css';
```
.page-item.active .page-link {
color: #ffffff;
background-color: #007bff;
}
```
| Theme | Description |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| classic-light.css | <img src="./theme-previews/classic.png?raw=true" width="292" alt="classic pagination" /><br />Classic pagination with link boxes |
| bootstrap-light.css | <img src="./theme-previews/bootstrap.png?raw=true" width="250" alt="classic pagination" /><br />Bootstrap 5 styled pagination (without installing Bootstrap)<br />See [additional bootstrap options](https://react-responsive-pagination.elantha.com/bootstrap-pagination/#options) |
| minimal-light.css | <img src="./theme-previews/minimal.png?raw=true" width="169" alt="classic pagination" /><br />Minimal pagination - links only |
Want to create your own? See the [Custom Styles Guide](https://react-responsive-pagination.elantha.com/custom-styled-pagination/)
2. 🥾 **Bootstrap 4 and 5**
Using Bootstrap in your project? **react-responsive-pagination** just works with Bootstrap (no need for any additional styles). See the [Bootstrap Getting Started Guide](https://react-responsive-pagination.elantha.com/bootstrap-pagination/)
3. 🎨 **Custom styling**
Custom styles? No problem - see the [Custom Styles Guide](https://react-responsive-pagination.elantha.com/custom-styled-pagination/)
## ✔︎ Requirements / Compatibility

@@ -87,0 +81,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc