React Smart Pagination Component API

Smart Pagination API

Explore the API reference for the React Smart Pagination component and discover how to effectively utilize its props for customization.

On this page

CSmartPagination

jsx
import { CSmartPagination } from '@coreui/react-pro'
PropertyDefaultType
activePage1number, undefined

Current page number.

alignstart'start', 'center', 'end', undefined

Horizontall align.

arrowstrueboolean, undefined

Show/hide arrows.

className-string, undefined

A string of all className you want applied to the base component.

dotstrueboolean, undefined

Show/hide dots.

doubleArrowstrueboolean, undefined

Show double arrows buttons.

firstButton<React.Fragment>&laquo;</React.Fragment>ReactNode

The content of firstButton button.

lastButton<React.Fragment>&raquo;</React.Fragment>ReactNode

The content of lastButton button.

limit5number, undefined

Maximum items number.

nextButton<React.Fragment>&rsaquo;</React.Fragment>ReactNode

The content of nextButton button.

onActivePageChange-((activePage: number) => void), undefined

On active page change callback.

pages-number

Number of pages.

previousButton<React.Fragment>&lsaquo;</React.Fragment>ReactNode

The content of previousButton button.

size-'sm', 'lg', undefined

Size of pagination, valid values: 'sm', 'lg'.