import {
Pagination,
PaginationWithBasicItems,
} from '$packages/clay-pagination/docs/index';
You can use ClayPagination.Ellipsis
to display a dropdown with the specified page numbers as the dropdown's options.
ClayPagination.Item
renders a basic Pagination item with content you provide.
Combining these you can reach the following result:
If you want to have a simple Pagination with integers as Pagination items you can use a simpler variant, PaginationWithBasicItems
as you can see below:
API
[APITable "clay-pagination/src/Pagination.tsx"]
[APITable "clay-pagination/src/Ellipsis.tsx"]
[APITable "clay-pagination/src/Item.tsx"]
[APITable "clay-pagination/src/PaginationWithBasicItems.tsx"]