UNPKG

@primer/react-brand

Version:

Primer Brand is a GitHub's design system for creating React-based marketing websites and digital experiences.

21 lines (20 loc) 1.04 kB
import React from 'react'; import { PaginationPageType } from './model'; export type PaginationProps = { pageCount: number; currentPage: number; onPageChange?: (e: React.MouseEvent, n: number) => void; hrefBuilder?: (n: number) => string; pageAttributesBuilder?: (n: number, page: PaginationPageType) => { [attributeName: string]: string; }; marginPageCount?: number; showPages?: boolean; surroundingPageCount?: number; 'data-testid'?: string; } & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>; /** * Use Pagination to display a sequence of links that allow navigation to discrete, related pages. * @see https://primer.style/brand/components/Pagination */ export declare const Pagination: React.MemoExoticComponent<({ id, className, pageCount, currentPage, onPageChange, hrefBuilder, pageAttributesBuilder, marginPageCount, showPages, surroundingPageCount, "aria-label": ariaLabel, "data-testid": testId, ...rest }: PaginationProps) => import("react/jsx-runtime").JSX.Element>;