# Pagination
> Page navigation for long lists.
Import from `@aspyn-io/kit`. Scaffold source: `npx shadcn@latest add https://design.aspyn.io/r/pagination.json`
## Install
```tsx
import {
Pagination,
PaginationContent,
PaginationItem,
PaginationLink,
PaginationPrevious,
PaginationNext,
PaginationEllipsis,
} from "@aspyn-io/kit";
```
### Basic
Links by default: use asChild for Next.js Link, or onClick for client state.
```tsx
1
2
3
```
### Compact
Prev/next around the current page for tight layouts.
```tsx
3
```
### Icons only
Icon-only prev/next with a page indicator, ideal beside a data table.
```tsx
Page 3 of 12
```