Navigation & data
Pagination
Page links in a labelled nav with the current page marked.
Pagination
<nav class="og-pagination" aria-label="Pagination">
<a class="og-pagination__item" href="#" aria-label="Previous page" aria-disabled="true">‹</a>
<a class="og-pagination__item" href="#" aria-current="page">1</a>
<a class="og-pagination__item" href="#">2</a>
<a class="og-pagination__item" href="#">3</a>
<span class="og-pagination__gap" aria-hidden="true">…</span>
<a class="og-pagination__item" href="#">12</a>
<a class="og-pagination__item" href="#" aria-label="Next page">›</a>
</nav>React
import { Pagination } from '@og-ui/react';
<Pagination page={page} pageCount={12} onPageChange={setPage} />
// or links: getHref={(p) => `?page=${p}`}In every theme
Clean SaaS
Glassmorphism 2.0
Liquid glass
Neumorphism / Soft UI
Claymorphism
Neubrutalism
Aurora / mesh gradient
Keyboard and screen readers
- Tab moves through the links; Enter follows one. A disabled link stays focusable but does nothing.
Install
npx @og-ui/cli add pagination
npx @og-ui/cli add pagination --react # with the React component