Component packs › Tabula › Table Pager
Next slides the page out left and the new rows in from the right one by one; page size grows the table on a spring and the range rolls.
Table Pager is a pagination from Tabula, a component pack with 8 components: Data table components where rows move to their new places. Price: $2 for the whole pack.
Built with: directional slide, page size, load().
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
total | number | ||
pageSize | number | ||
load | (page: number, size: number) => Promise<TabulaRow[]> | TabulaRow[] | makes believable rows | Fetch a page; default makes believable rows. |
onPage | (page: number) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: flips pages and sizes until touched. |
go(page: number): voiddestroy(): voidimport TablePager from './TablePager';
<TablePager />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Data tables.