interface PaginationProps {
    className?: string;
    currentPage: number;
    onPageChange: ((page) => void);
    totalPages: number;
}

Properties

className?: string

Custom class to give the html component

currentPage: number

Currently selected page in the pagination. Pages are counted from 1.

onPageChange: ((page) => void)

Callback when the page is changed

Type declaration

    • (page): void
    • Callback when the page is changed

      Parameters

      • page: number

      Returns void

totalPages: number

Total number of pages in the pagination.

Generated using TypeDoc