Skip to Content
Liquid Glass UI
Components

Pagination

Apple 27 Button-based paginator with an accent capsule for the active page, ghost buttons for other pages, and 44px mobile ↔ 32px desktop touch targets.

Fully compatible with the standard shadcn/ui JSX API (Pagination / PaginationContent / PaginationItem / PaginationLink / PaginationPrevious / PaginationNext / PaginationEllipsis):

  • Page pills: Active page renders with default (solid theme accent with bold white digits), while other pages use ghost borderless buttons.
  • Touch targets: Inherits Button's icon sizing—44px on mobile ↔ 32px on desktop.
  • Built-in i18n: Resolves Previous / Next labels automatically from <LiquidGlassProvider locale={lang}> (12 mainstream languages), or override with the text prop.
apple-liquid-ui/preview/pagination-demo
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/pagination

Usage

import {
  Pagination,
  PaginationContent,
  PaginationItem,
  PaginationLink,
  PaginationNext,
  PaginationPrevious,
} from '@/components/ui/pagination';

export function Example() {
  return (
    <Pagination>
      <PaginationContent>
        <PaginationItem>
          <PaginationPrevious href="#" />
        </PaginationItem>
        <PaginationItem>
          <PaginationLink href="#" isActive>
            1
          </PaginationLink>
        </PaginationItem>
        <PaginationItem>
          <PaginationNext href="#" />
        </PaginationItem>
      </PaginationContent>
    </Pagination>
  );
}

Language & Text

Pagination accepts locale and messages, which apply to all of its parts and the overlays it opens and win over the global <LiquidGlassProvider locale messages>. To override the text globally, put it under messages.pagination on the provider. See Liquid Glass → Global settings.

PropTypeDescription
localeLiquidGlassLocaleInputUI language of this component (any BCP 47 tag; unsupported ones fall back to English)
messagesPartial<PaginationMessages>Text overrides, merged over the built-in text and the global messages.pagination
KeyBuilt-in text (English)
labelPagination
previousPrevious
nextNext
morePagesMore pages

On this page