Carregando…
Carregando…
Carregando…Page navigator with sibling pages, edge buttons, size variants and item count display.
$ npx kikitocn add pagination@/lib/utilsimport { Pagination } from "@/components/ui/cn/pagination/Pagination";
export function PaginationExample() {
return (
<Pagination />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
page* | number | — | Página atual (1-indexed) |
totalPages* | number | — | Total de páginas |
onChange* | (page: number) => void | — | Callback quando a página muda |
size | 'sm' | 'md' | 'md' | Tamanho dos botões de página |
showEdges | boolean | false | Exibe botões de primeira/última página |
siblings | number | 1 | Número de páginas irmãs ao redor da atual |
totalItems | number | undefined | Total de itens (usado para exibir 'Showing X of Y') |
pageSize | number | undefined | Itens por página (usado para exibir 'Showing X of Y') |
Pagination — navigator with ellipsis, range label and edge buttons