UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

17 lines (16 loc) 698 B
import type { PropsFor } from "../../types.js"; export type PaginationProps = PropsFor<"div", { /** Current page */ currentPage: number; /** Total number of pages */ totalPages: number; /** Callback for page change. Calls the function with the page number */ onChange: (pageNumber: number) => void; /** Total number of displayed pages (includes '...'), should be odd and 7 or higher */ displayPages?: number; }>; /** * Component for displaying available pages and current page in a paged environment */ declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & import("react").RefAttributes<HTMLDivElement>>; export default Pagination;