Pagination
Size Toggle Pagination
Table pagination where the page size is a button group beside the page numbers, not a hidden dropdown: the current choice is visible without a click, and the spot in the list survives a size change.
What you can change
- total, defaultPerPage and sizes — the total row count, the default size and the available sizes
- siblings — the width of the number window around the current page
- the accent through the accent prop — it colours the active number and the active size button
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/pagination-013?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-pagination-013-* variables. Client component: "use client" for the sake of the page and the page size. The numbers are computed by windowOf — the same technique as in the other variants with a window around the current page. The size is switched by a role="group" of buttons with aria-pressed rather than by a <select>: the choice is visible at once, without opening a list. changeSize recomputes the page number from the current first visible row, so that a size change does not throw the reader back to the first page.
Tags
- pagination
- page size
- table
- toggle
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…