SlidePagination
SlidePagination: A pagination control where the active indicator slides between pages rather than instantly switching. The active background uses shared layoutId so the indicator visibly travels from one item to the next. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install SlidePagination
npx motion-ui-skill add slide-paginationComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactmotionreacttailwind-merge
Source files
SlidePagination
A pagination control where the active indicator slides between pages rather than instantly switching. The active background uses shared layoutId so the indicator visibly travels from one item to the next.
Install
npx motion-ui-skill add slide-pagination
Dependencies
clsxlucide-reactmotionreacttailwind-merge
Usage
"use client";
import { SlidePagination as SlidePagination } from "@/components/craft/slide-pagination";
export function Example() {
return (
<div className="p-6">
<SlidePagination />
</div>
);
}