1.0.1 • Published 2 years ago

af-pagination v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

a simple pagination

a simple pagination for react to use in your application

Alt text

installation

npm install af-pagination

Usage

import AfPagination from "af-pagination";
...
const [page, set_page] = useState<number>(1);
...
<AfPagination
    current_page={page}
    set_page={set_page}
    total_pages={12}
/>

Options

export type AF_Pagination_props = {
  current_page: any;
  set_page: any;
  total_pages?: number;
  total_count?: number;
  per_page?: number;
  activeStyles?: CSSProperties;
  hoverStyles?: CSSProperties;
  navStyles?: CSSProperties;
  navHoverStyles?: CSSProperties;
  style?: CSSProperties;
  show_if_only_one_page?: boolean;
  next_element?: ReactElement;
  prev_element?: ReactElement;
  dots_element?: ReactElement;
  dir?: "rtl" | "ltr";
  gap?: number;
  hideNavigation?: boolean;
};
1.0.1

2 years ago

1.0.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago