Skip to content

Pagination

Page numbers in fixed slots, so the control never changes width.

$149 once · every Pro piece

Customize

One raised square slides to the current page, and when the window shifts the numerals roll to their new values.

Install

npx shadcn@latest add @obsyde/pagination

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Pagination } from '@/components/obsyde/ember/pagination/Pagination';

export function Example() {
  return (
    <Pagination page={5} total={20} />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/pagination/Pagination.tsxcomponent
  • ember/pagination/pagination.cssstyles
  • ember/pagination/PaginationDemo.tsxdemo
  • ember/nav-kit/icons.tsxshared
  • ember/nav-kit/motion.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
pagePagenumber5
totalPagesnumber20
siblingsSiblingsnumber1