wix-style-react
Version:
wix-style-react
23 lines • 886 B
TypeScript
import * as React from 'react';
export interface PaginationProps {
/** Applies a data-hook HTML attribute that can be used in the tests */
dataHook?: string;
/** Specifies a CSS class to be applied to the component’s root element */
className?: string;
/** Sets a number of available pages to show in the component */
totalPages?: number;
/** Specifies a currently selected page */
currentPage?: number;
/** Defines a callback function which returns a selected page or an arrow ({`event`,`page`}) */
onChange?(event: {
event: React.SyntheticEvent;
page: number;
}): void;
/** Get pageNumber and returns url */
pageUrl?(pageNumber: number): string;
/** Sets next page label */
nextLabel?: string;
/** Sets previous page label */
previousLabel?: string;
}
//# sourceMappingURL=Pagination.types.d.ts.map