reshaped

Reshaped Pagination

Navigation

About

Renders the full range of pages from the total count, automatically truncating the display around the currently selected page. Requires aria-labels for the previous/next controls, supports per-page aria-labels, an onChange handler and both controlled and uncontrolled page state.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Reshaped Pagination to your project and fits it to your theme.

Code

How Reshaped Pagination is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Reshaped } from "reshaped/bundle";
import Pagination from "@/components/ui/reshaped-pagination";

export default function Demo() {
  return (
    <Reshaped theme="slate">
      <div style={{ margin: "0 auto", padding: 24, display: "flex", justifyContent: "center" }}>
        <Pagination
          total={10}
          defaultPage={5}
          previousAriaLabel="Previous page"
          nextAriaLabel="Next page"
        />
      </div>
    </Reshaped>
  );
}

Dependencies

More by reshaped

View all
  • Reshaped Toast

    Reshaped Toast

    14
  • Reshaped Calendar

    Reshaped Calendar

    11
  • Reshaped Checkbox

    Reshaped Checkbox

    10
  • Reshaped Progress indicator

    Reshaped Progress indicator

    9
  • Reshaped Context menu

    Reshaped Context menu

    9
  • Reshaped Autocomplete

    Reshaped Autocomplete

    9
  • Reshaped Slider

    Reshaped Slider

    8
  • Reshaped Carousel

    Reshaped Carousel

    8

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    162
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    427
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    27
  • Sidebar

    Sidebar

    441
  • Tabs

    Tabs

    38
  • Footer Section

    Footer Section

    2
  • Sidebar

    Sidebar

    366
  • Pagination

    Pagination

    119