All Projects → smakosh → react-hot-pagination

smakosh / react-hot-pagination

Licence: MIT license
A React component to render your pagination navigation

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-hot-pagination

AdvancedList-SwiftUI
MOVED to https://github.com/crelies/AdvancedList | Advanced list with empty, error and loading state implemented with SwiftUI
Stars: ✭ 41 (+46.43%)
Mutual labels:  pagination
vue-tiny-pagination
A Vue component for create a tiny pagination with Flexbox
Stars: ✭ 20 (-28.57%)
Mutual labels:  pagination
laravel-auto
Laravel Auto - a helper package to make automated lists with filters, sorting and paging like no other
Stars: ✭ 41 (+46.43%)
Mutual labels:  pagination
Pagination
a paging widget based on Qt
Stars: ✭ 22 (-21.43%)
Mutual labels:  pagination
django-cursor-pagination
Cursor-based pagination for Django
Stars: ✭ 126 (+350%)
Mutual labels:  pagination
hanami-pagination
No description or website provided.
Stars: ✭ 14 (-50%)
Mutual labels:  pagination
lampager-laravel
Rapid pagination for Laravel
Stars: ✭ 71 (+153.57%)
Mutual labels:  pagination
cakephp-api-pagination
📑 CakePHP 4 plugin that injects pagination information into API responses.
Stars: ✭ 39 (+39.29%)
Mutual labels:  pagination
reactionmenu
A library to create a discord paginator. Supports pagination with Discords Buttons feature and reactions.
Stars: ✭ 68 (+142.86%)
Mutual labels:  pagination
ag-grid
The best JavaScript Data Table for building Enterprise Applications. Supports React / Angular / Vue / Plain JavaScript.
Stars: ✭ 8,743 (+31125%)
Mutual labels:  pagination
simple-datagridview-paging
A simple UserControl that shows the data-table and paging automatically with .Net Framework
Stars: ✭ 23 (-17.86%)
Mutual labels:  pagination
InfiniteScroll
You can do a Endless scroll in ListView or RecyclerView with simple steps, with a listener for do request to your web service.
Stars: ✭ 28 (+0%)
Mutual labels:  pagination
react-native-paginated-listview
A simple paginated react-native ListView with a few customization options
Stars: ✭ 14 (-50%)
Mutual labels:  pagination
pagination
Пример создания пагинации в Vue.js
Stars: ✭ 31 (+10.71%)
Mutual labels:  pagination
rails cursor pagination
Add cursor pagination to your ActiveRecord backed application
Stars: ✭ 21 (-25%)
Mutual labels:  pagination
paginater
Package paginater is a helper module for custom pagination calculation.
Stars: ✭ 45 (+60.71%)
Mutual labels:  pagination
react-example-paginated-list-infinite-scroll
Follow a React tutorial series with three parts to build a powerful component in React.
Stars: ✭ 43 (+53.57%)
Mutual labels:  pagination
dynamodb-paginator
Paginate DynamoDB results easily
Stars: ✭ 18 (-35.71%)
Mutual labels:  pagination
bs-table
BsTable is an AngularJS directive that adds tfoot tag with pagination and page size selection to your table and watches changes on your collection in ng-repeat attribute.
Stars: ✭ 42 (+50%)
Mutual labels:  pagination
fast-relay-pagination
Improve relay pagination performance with find and limit
Stars: ✭ 18 (-35.71%)
Mutual labels:  pagination

react-hot-pagination

All Contributors

npm package

Example

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Paginate } from 'react-hot-pagination';

const App = () => {
  const [current, setCurrent] = React.useState(1);

  const handlePagination = (value: number) => setCurrent(value);

  return (
    <div>
      <Paginate
        current={current}
        handlePagination={handlePagination}
        range={2}
        total={30}
        components={{}}
      />
    </div>
  );
};

ReactDOM.render(<App />, document.getElementById('root'));

Getting started

npm i react-hot-pagination

Or

yarn add react-hot-pagination

Props

Paginate

These docs are inspired by react-flex-ready docs

range total current

Option Default Type Description
range 2 {number} Pages shown before after the current page
total 20 {number} Total pages
current 1 {number} Current page
components {object} your Button, Separator, LeftArrow and RightArrow components
handlePagination {(value: number) => void} Your custom handle function to update the current page

Built with

  • TSDX

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Contributors


Elbarae Rguig

💻 📖

DRISSI TOUBBALI Fadel

💻

Todo

  • Add more examples

Support

If you love this React component and want to support me, you can do so through my Patreon or GitHub sponsors.

Support me on Patreon

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].