UNPKG

@trussworks/react-uswds

Version:
12 lines (11 loc) 550 B
import { default as React, JSX } from 'react'; export type PaginationProps = { pathname: string; totalPages?: number; currentPage: number; maxSlots?: number; onClickNext?: () => void; onClickPrevious?: () => void; onClickPageNumber?: (event: React.MouseEvent<HTMLButtonElement>, page: number) => void; } & JSX.IntrinsicElements['nav']; export declare const Pagination: ({ pathname, totalPages, currentPage, className, maxSlots, onClickPrevious, onClickNext, onClickPageNumber, ...props }: PaginationProps) => JSX.Element;