Component packs › Floors › Floor Pagination
Pick a page and the steel doors slide shut, the dot-matrix indicator steps floor by floor with each lamp lighting as the car passes, then the doors part on the new page.
Floor Pagination is a pagination from Floors, a component pack with 6 lift controls: Pagination, dialogs, steppers and menus that work like a lift. Price: $2 for the whole pack.
Built with: dot-matrix row scroll, door spring, floor-by-floor travel.
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 |
|---|---|---|---|
pages | number | Number of pages. | |
page | number | Current page, 1-based. | |
perPage | number | caption | Items per page, for the default caption. |
total | number | caption | Total items, for the default caption. Default pages × perPage. |
caption | (page: number, pages: number) => string | Caption shown inside the car for a page. | |
onChange | (page: number) => void | ||
autoplay | number | false | Showcase mode: rides to another page every N ms while visible. |
readonly page: numbergo(page: number, silent?: boolean): voiddestroy(): voidimport FloorPagination from './FloorPagination';
<FloorPagination />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers.