1.1.0 • Published 1 year ago

@architecturex/components.switcher v1.1.0

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

@architecturex/components.pagination

Pagination

A flexible and customizable pagination component for React applications.

Installation

npm install @architecturex/components.pagination

Features

  • Supports various color themes: 'primary', 'secondary', 'danger', 'warning', and 'success'.
  • Customizable rows per page.
  • Adjustable href for pagination links.
  • Efficient rendering by only showing necessary pages in the viewport.

Usage

import Pagination from '@architecturex/components.pagination'

function App() {
  return <Pagination href="/page/" page={1} total={50} color="primary" />
}

Props

  • color (Optional): Set the color theme of the pagination. Choices are 'primary', 'secondary', 'danger', 'warning', or 'success'. Default is 'primary'.
  • page: Current page number. Starts at 0.
  • total: Total number of items.
  • rowsPerPage (Optional): Number of rows/items per page. Default is 10.
  • href: Base URL for the pagination links.

Contribution

Feel free to suggest improvements, report issues, or contribute to enhancing this component. Your feedback and contributions are welcome!

1.1.0

1 year ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago