Interface PaginationProps

interface PaginationProps {
    activeButtonStyle?: CSSProperties;
    currentPage: number;
    normalButtonStyle?: CSSProperties;
    pageLength: number;
    setCurrentPage: Dispatch<SetStateAction<number>>;
}

Properties

activeButtonStyle?: CSSProperties

Style provided to the active pagination button.

currentPage: number

Currently active page. The pages are 1 based index i.e. it should start with 1.

normalButtonStyle?: CSSProperties

Style provided to the in-active pagination button.

pageLength: number

Total number of pages.

setCurrentPage: Dispatch<SetStateAction<number>>

setState function to update set current page.

Generated using TypeDoc