Pagination

Page buttons with a raised thumb that slides to the current page. Long ranges collapse with ellipses.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Pagination3D props

PropTypeDefaultDescription
totalnumberTotal number of pages.
pagenumberControlled current page, starting at 1. Pair it with onPageChange.
defaultPagenumber1Initial page when uncontrolled.
onPageChange(page: number) => voidCalled with the new page number when it changes.
siblingsnumber1Pages shown either side of the current one.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks