UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

21 lines (20 loc) 765 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 * * @see https://bifrost.intility.com/react/pagination */ declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & import("react").RefAttributes<HTMLDivElement>>; export default Pagination;