A component for navigating through paginated content with customizable page ranges and navigation controls.
Import the Pagination
component from @bun-ui/react
and use it in your project:
import { Pagination } from "@bun-ui/react"
<Pagination count={10} />
A simple pagination component with default settings:
Manage the page state externally:
Add first and last page navigation buttons:
The Pagination component supports two variants:
Customize the color scheme of the pagination:
The Pagination component supports three sizes:
Disable the entire pagination component:
You can customize the rendering of individual pagination items using the renderItem
prop.
This allows you to have full control over how each item is displayed
while maintaining the pagination logic: