1.2.2 • Published 1 year ago

radiant-bloom-pagination v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

radiant-bloom-pagination

npm version

A customizable pagination component for React applications.

Installation

You can install this package via npm:

npm install radiant-bloom-pagination

Usage

import React, { useState } from 'react';
import RadiantBloomPagination from 'radiant-bloom-pagination';

const MyComponent = () => {
  const [currentPage, setCurrentPage] = useState(0);

  const handlePageChange = (selectedPage) => {
    setCurrentPage(selectedPage);
    // Perform any action on page change
  };

  return (
    <div>
      {/* Your content here */}
      <RadiantBloomPagination
        pageCount={10} // Total number of pages
        onPageChange={handlePageChange} // Callback function for page change
      />
    </div>
  );
};

export default MyComponent;

Props

  • pageCount: (Number) The total number of pages.
  • onPageChange: (Function) Callback function triggered when a page is changed.

License

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

1.2.2

1 year ago

1.2.0

1 year ago

1.2.1

1 year ago

1.0.0

1 year ago