UNPKG

794 BTypeScriptView Raw
1import type { PaginationLocale, PaginationProps as RcPaginationProps } from 'rc-pagination';
2import * as React from 'react';
3export interface PaginationProps extends RcPaginationProps {
4 showQuickJumper?: boolean | {
5 goButton?: React.ReactNode;
6 };
7 size?: 'default' | 'small';
8 responsive?: boolean;
9 role?: string;
10 totalBoundaryShowSizeChanger?: number;
11 rootClassName?: string;
12}
13export type PaginationPosition = 'top' | 'bottom' | 'both';
14export type PaginationAlign = 'start' | 'center' | 'end';
15export interface PaginationConfig extends Omit<PaginationProps, 'rootClassName'> {
16 position?: PaginationPosition;
17 align?: PaginationAlign;
18}
19export type { PaginationLocale };
20declare const Pagination: React.FC<PaginationProps>;
21export default Pagination;