Pagination
The Pagination
component provides pagination with page navigation, next and previous links. The pagination is generated dynamically using query params: ?page=1
Preview
Usage
Props
Notes
The
Pagination
component uses various sub-components likePaginationContent
,PaginationItem
,PaginationLink
,PaginationPrevious
,PaginationNext
, andPaginationEllipsis
.The
total
prop specifies the total number of items in the listThe
limit
prop determines how many items to show per pageThe
className
prop allows for custom styling to be applied.If
items
is not provided, thechildren
prop can be used to pass custom child components.For more details, refer to the Shadcn Pagination documentation.
Last updated