krypton-ui
Version:
<h1 align="center"> <p align="center"><a href="https://krypton-ui.com"><img src="https://user-images.githubusercontent.com/7073241/224507377-395bffc0-9ff7-4d74-865b-f734394a7e7e.png" alt="Krypton" width="200"></a></p> </h1>
27 lines (26 loc) • 706 B
TypeScript
import { ComponentPropsWithoutRef } from "react";
import { Color, Size } from "../../types";
import { IconName } from "../Icon/types";
type PaginationType = {
total: number;
current: number;
onChange: (value: number) => void;
color?: Color;
closestPages?: number;
disabled?: boolean;
size?: Size;
showPrevious?: boolean;
showNext?: boolean;
previousIcon?: IconName;
nextIcon?: IconName;
pagesToShow?: number;
};
export type PageProps = number | string;
export type ItemStyledProps = {
active?: boolean;
color: Color;
disabled: boolean;
size: Size;
};
export type PaginationProps = ComponentPropsWithoutRef<"div"> & PaginationType;
export {};