@abgov/react-components
Version:
Government of Alberta - UI components for React
28 lines (27 loc) • 935 B
TypeScript
import { GoabPaginationOnChangeDetail, Margins } from '@abgov/ui-components-common';
interface WCProps extends Margins {
ref?: React.RefObject<HTMLElement | null>;
itemcount: number;
perpagecount?: number;
pagenumber: number;
variant?: "all" | "links-only";
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-pagination": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabPaginationProps extends Margins {
itemCount: number;
perPageCount?: number;
pageNumber: number;
variant?: "all" | "links-only";
onChange: (detail: GoabPaginationOnChangeDetail) => void;
testId?: string;
}
export type PaginationProps = GoabPaginationProps;
export declare function GoabPagination({ onChange, ...props }: GoabPaginationProps): import("react/jsx-runtime").JSX.Element;
export default GoabPagination;