UNPKG

@cimpress/react-components

Version:
29 lines 1.11 kB
/// <reference types="react" /> import { ReactPaginateProps } from 'react-paginate'; import { PublicComponentProps } from './types'; export interface PaginationProps extends ReactPaginateProps, PublicComponentProps { /** * The initial page that is selected in the component. */ initialPage?: number; /** * Callback function that is triggered when a new page number is selected. */ onPageChange: ({ selected }: { selected: number; }) => void; /** * Defines the total number of pages available. */ pageCount: number; /** * The number of pages displayed between the ... boxes. Only updates on odd number inputs. (i.e. 6 will show 7 boxes). */ pagesBetweenElipses?: number; /** * The number of pages displayed to the left and right of the ... boxes. */ pagesOutsideElipses?: number; } export declare const Pagination: ({ className, initialPage, pagesOutsideElipses, pagesBetweenElipses, marginPagesDisplayed, pageRangeDisplayed, ...rest }: PaginationProps) => JSX.Element; //# sourceMappingURL=Pagination.d.ts.map