welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
14 lines (13 loc) • 544 B
TypeScript
import { ForwardRefProps } from '../../utils';
export interface PaginationOptions {
buttonNextProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
buttonPrevProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
dataTestId?: string;
getHref?: (page: number | string) => string;
listProps?: React.OlHTMLAttributes<HTMLOListElement>;
onChange: (page: number | string) => void;
page: number;
pageCount: number;
rangeDisplay?: number;
}
export type PaginationProps = ForwardRefProps<PaginationOptions, 'nav'>;