Component packs › Floors › Floor Pagination

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.

Floor Pagination props

PropTypeDefaultDescription
pagesnumberNumber of pages.
pagenumberCurrent page, 1-based.
perPagenumbercaptionItems per page, for the default caption.
totalnumbercaptionTotal items, for the default caption. Default pages × perPage.
caption(page: number, pages: number) => stringCaption shown inside the car for a page.
onChange(page: number) => void
autoplaynumber | falseShowcase mode: rides to another page every N ms while visible.

Methods on the ref

Use it in React

import FloorPagination from './FloorPagination';

<FloorPagination />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Floors

Good for: Dialogs and drawers.