UNPKG

semantic-ui-react

Version:
59 lines (41 loc) 1.71 kB
import * as React from 'react' import { SemanticShorthandItem } from '../..' import { default as PaginationItem, PaginationItemProps } from './PaginationItem' export interface PaginationProps { [key: string]: any /** A pagination item can have an aria label. */ 'aria-label'?: string /** Initial activePage value. */ defaultActivePage?: number | string /** Index of the currently active page. */ activePage?: number | string /** Number of always visible pages at the beginning and end. */ boundaryRange?: number | string /** A shorthand for PaginationItem. */ ellipsisItem?: SemanticShorthandItem<PaginationItemProps> /** A shorthand for PaginationItem. */ firstItem?: SemanticShorthandItem<PaginationItemProps> /** A shorthand for PaginationItem. */ lastItem?: SemanticShorthandItem<PaginationItemProps> /** A shorthand for PaginationItem. */ nextItem?: SemanticShorthandItem<PaginationItemProps> /** A shorthand for PaginationItem. */ pageItem?: SemanticShorthandItem<PaginationItemProps> /** A shorthand for PaginationItem. */ prevItem?: SemanticShorthandItem<PaginationItemProps> /** * Called on change of an active page. * * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props. */ onPageChange?: (event: React.MouseEvent<HTMLAnchorElement>, data: PaginationProps) => void /** Number of always visible pages before and after the current one. */ siblingRange?: number | string /** Total number of pages. */ totalPages: number | string } declare class Pagination extends React.Component<PaginationProps, {}> { static Item: typeof PaginationItem } export default Pagination