Ready-to-Use Components Powered by Flowbite, ShadCN & Headless UI
Component Library
Browse and explore components
Pagination
Pagination is a UI component used to divide content into separate pages and allow users to navigate through them.
Default Pagination
Sample Code
Show Code
Copy Code
Pagination With Icons
Sample Code
Show Code
Copy Code
Previous And Next Button
Sample Code
Show Code
Copy Code
With Icon
Sample Code
Show Code
Copy Code
Table Data Navigation
Sample Code
Show Code
Copy Code
Pagination Control Button Text
Sample Code
Show Code
Copy Code
API ( Pagination )
Prop | Description | Type | Default |
---|---|---|---|
currentPage | The current active page. | number | 1 |
totalPages | The total number of pages. | number | 1 |
showIcons | If `true`, next and previous buttons will be shown with icons. | boolean | false |
layout | The layout style of the pagination. | 'pagination' | 'navigation' | 'table' | 'pagination' |
previousLabel | Label for the previous button. | 'Previous' | 'Go back' | '<' | '‹' | 'Previous' |
nextLabel | Label for the next button. | 'Next' | 'Go forward' | '>' | '›' | 'Next' |