UNPKG

@confi/conflux-react-ui-test-package

Version:

Modern and minimalist React UI library.

28 lines (27 loc) 1.01 kB
import React from 'react'; import PaginationPrevious from './pagination-previous'; import PaginationNext from './pagination-next'; import { NormalSizes } from '../utils/prop-types'; interface Props { size?: NormalSizes; page?: number; initialPage?: number; count?: number; limit?: number; onChange?: (val: number) => void; } declare const defaultProps: { size: "mini" | "small" | "medium" | "large"; initialPage: number; count: number; limit: number; }; declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>; export declare type PaginationProps = Props & typeof defaultProps & NativeAttrs; declare type MemoPaginationComponent<P = {}> = React.NamedExoticComponent<P> & { Previous: typeof PaginationPrevious; Next: typeof PaginationNext; }; declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs; declare const _default: MemoPaginationComponent<ComponentProps>; export default _default;