UNPKG

@thehappycoder/react-responsive-pagination

Version:
25 lines (24 loc) 682 B
import { Ref, MouseEventHandler } from 'react'; export { default as BootstrapSkin } from './BootstrapSkin'; export { createSkinItem } from './createSkinItem'; export declare type SkinComponent = React.ComponentType<{ ref?: Ref<HTMLElement>; items: SkinItem[]; }>; export declare type SkinItem = { key: string; } & (Page | Nav | Ellipsis); declare type Page = { type: 'page'; active: boolean; label: string; onClick: MouseEventHandler<HTMLAnchorElement>; }; declare type Nav = { type: NavType; onClick?: MouseEventHandler<HTMLAnchorElement>; }; declare type Ellipsis = { type: 'ellipsis'; }; export declare type NavType = 'next' | 'previous';