Pager
Previous/next page navigation bar with arrow indicators.
Installation
dgadd is not public on npm yet. Until the first release, pack @diffgazer/add from the repository and install that tarball into this app, which is what puts dgadd on pnpm exec.
The hosted registry is not public yet because r.b4r7.dev does not resolve. Use this source checkout or a local registry preview until the endpoint returns 200.
Diffgazer packages are not yet published to npm. Until the first release, pack @diffgazer/ui and @diffgazer/keys from the repository and install those tarballs.
UI components require Tailwind CSS v4. Local copy mode imports src/styles/styles.css; package mode uses @diffgazer/ui CSS once packages are available.
Usage
Examples
Single Direction
Long Titles
Hover and Focus
Framework Link (render prop)
API Reference
Pager
PagerLink
Accessibility
Notes
Page Spacing
Pager renders only the top rule and the link row. Vertical spacing from the content above is a page decision — add it at the call site (for example className="mt-8").
Link Navigation
Use PagerLink with a direction prop for standard anchor links. For framework-specific link components (TanStack Link, Next.js Link), use the render-prop pattern: <PagerLink direction="next">{(props) => <Link {...props} to="...">text</Link>}</PagerLink>.
Source
Install via CLI: pnpm exec dgadd add ui/pager.
Highlighted source loads after this disclosure opens. Browse the source repository.