React Smart Pagination Component API
Smart Pagination API
New Year sale. Skyrocket your business in 2025!
Extra 25% off for all sale items + Free CoreUI Icons PRO with every order!
Limited-time offer for the first 100 customers in 2025. Use code 2025SKY25 at checkout.
Limited-time offer for the first 100 customers in 2025. Use code 2025SKY25 at checkout.
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'. |