UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

27 lines (26 loc) 978 B
import React, { type CSSProperties } from "react"; import { RegisteredLinkProps } from "./link"; export type PaginationProps = { id?: string; className?: string; count: number; defaultPage?: number; classes?: Partial<Record<"root" | "list" | "link", string>>; style?: CSSProperties; showFirstLast?: boolean; getPageLinkProps: (pageNumber: number) => RegisteredLinkProps; }; /** @see <https://components.react-dsfr.codegouv.studio/?path=/docs/components-pagination> */ export declare const Pagination: React.MemoExoticComponent<React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLDivElement>>>; declare const addPaginationTranslations: (params: { lang: string; messages: Partial<{ "first page": string; "previous page": string; "next page": string; "last page": string; "aria-label": string; }>; }) => void; export { addPaginationTranslations }; export default Pagination;