react-use-pagination
Version:
A React hook to help manage pagination state
14 lines (13 loc) • 468 B
TypeScript
import { ReactNode } from "react";
import { usePagination } from "./usePagination";
declare type PaginationProps = {
children: (arg0: ReturnType<typeof usePagination>) => ReactNode;
totalItems?: number;
initialPage?: number;
initialPageSize: number;
};
declare function Pagination({ children, totalItems, initialPage, initialPageSize, }: PaginationProps): ReactNode;
declare namespace Pagination {
var displayName: string;
}
export { Pagination };