1.0.28 • Published 6 months ago

pagination-library v1.0.28

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Pagination Library

The Pagination Library is a React component designed to generate a paginated navigation system.

Installation

To use the Pagination Library in your React application, install it using npm or yarn:

npm install pagination-library

or

yarn add pagination-library

Usage

Usage To use the Pagination component within your React application: import { Pagination } from 'pagination-library';

Absolutely, here's a README and documentation for your pagination library:

Pagination Library (pagination-library) The Pagination Library is a React component designed to generate a paginated navigation system.

Installation To use the Pagination Library in your React application, install it using npm or yarn:

bash Copy code npm install pagination-library

or

yarn add pagination-library

Usage

To use the Pagination component within your React application:

Import the Pagination component: javascript Copy code import React from 'react'; import { Pagination } from 'pagination-library';

Props totalItems (required) The total number of items to be paginated.

itemsPerPage (required) The number of items to be displayed per page.

currentPage (required) The current active page number.

onPageChange (required) A function to handle page changes. It receives the page number as a parameter.

Styling

The provided CSS file contains styles for the pagination component. Customize these styles as needed to match your application's design.

1.0.28

6 months ago

1.0.27

6 months ago

1.0.26

6 months ago

1.0.25

6 months ago

1.0.24

6 months ago

1.0.23

6 months ago

1.0.22

6 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.19

6 months ago

1.0.18

6 months ago

1.0.16

6 months ago

1.0.15

6 months ago

1.0.14

7 months ago

1.0.12

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago