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#
import { CSmartPagination } from '@coreui/react-pro'// orimport CSmartPagination from '@coreui/react-pro/src/components/smart-pagination/CSmartPagination'
Property | Default | Type |
---|---|---|
activePage# | 1 | number |
Current page number. | ||
align# | start | 'start' , 'center' , 'end' |
Horizontall align. | ||
arrows# | true | boolean |
Show/hide arrows. | ||
className# | - | string |
A string of all className you want applied to the base component. | ||
dots# | true | boolean |
Show/hide dots. | ||
doubleArrows# | true | boolean |
Show double arrows buttons. | ||
firstButton# | <React.Fragment>«</React.Fragment> | ReactNode |
The content of | ||
lastButton# | <React.Fragment>»</React.Fragment> | ReactNode |
The content of | ||
limit# | 5 | number |
Maximum items number. | ||
nextButton# | <React.Fragment>›</React.Fragment> | ReactNode |
The content of | ||
onActivePageChange# | - | (activePage: number) => void |
On active page change callback. | ||
pages# | - | number |
Number of pages. | ||
previousButton# | <React.Fragment>‹</React.Fragment> | ReactNode |
The content of | ||
size# | - | 'sm' , 'lg' |
Size of pagination, valid values: 'sm', 'lg'. |