UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

33 lines (32 loc) 1.56 kB
import * as React from 'react'; import type { PaginationLocale, PaginationProps as RcPaginationProps } from '@rc-component/pagination'; import type { SemanticClassNamesType, SemanticStylesType } from '../_util/hooks'; import type { SelectProps } from '../select'; export type SemanticName = 'root' | 'item'; export type PaginationSemanticName = SemanticName; export type PaginationClassNamesType = SemanticClassNamesType<PaginationProps, PaginationSemanticName>; export type PaginationStylesType = SemanticStylesType<PaginationProps, PaginationSemanticName>; export interface PaginationProps extends Omit<RcPaginationProps, 'showSizeChanger' | 'pageSizeOptions' | 'classNames' | 'styles'> { showQuickJumper?: boolean | { goButton?: React.ReactNode; }; size?: 'default' | 'small'; responsive?: boolean; role?: string; totalBoundaryShowSizeChanger?: number; rootClassName?: string; showSizeChanger?: boolean | SelectProps; /** @deprecated Not official support. Will be removed in next major version. */ selectComponentClass?: any; /** `string` type will be removed in next major version. */ pageSizeOptions?: (string | number)[]; classNames?: PaginationClassNamesType; styles?: PaginationStylesType; } export type PaginationPosition = 'top' | 'bottom' | 'both'; export interface PaginationConfig extends Omit<PaginationProps, 'rootClassName'> { position?: PaginationPosition; } export type { PaginationLocale }; declare const Pagination: React.FC<PaginationProps>; export default Pagination;