react-paginating
Version:
Simple, lightweight, flexible pagination component
31 lines (29 loc) • 835 B
Flow
/**
* Flowtype definitions for index
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.5.3
* Author: [Joar Wilk](http://twitter.com/joarwilk)
* Repo: http://github.com/joarwilk/flowgen
*/
import * as React from "react";
export interface PaginationState {
pages: number[];
previousPage: number;
nextPage: number;
totalPages: number;
currentPage: number;
hasNextPage: boolean;
hasPreviousPage: boolean;
getPageItemProps: (props: any) => void;
}
export interface PaginationProps {
total: number;
children: (props: PaginationState) => React.ReactNode;
limit?: number;
pageCount?: number;
currentPage?: number;
pageValue?: number;
onPageChange?: (page?: number) => void;
}
declare class Pagination mixins React.Component<PaginationProps, any> {}
declare export default typeof Pagination;