@neuctra/ui
Version:
A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.
19 lines (18 loc) • 794 B
TypeScript
import { default as React } from 'react';
export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, "onChange"> {
/** Current page, 1-based. */
page: number;
totalPages: number;
onPageChange?: (page: number) => void;
/** How many pages to show on each side of the current page. */
siblingCount?: number;
size?: "sm" | "md" | "lg";
disabled?: boolean;
prevButtonClassName?: string;
nextButtonClassName?: string;
/** Applied to every numbered page button, in addition to the active/inactive styling. */
pageButtonClassName?: string;
activePageButtonClassName?: string;
ellipsisClassName?: string;
}
export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;