Skip to content

Pagination

Page navigation with siblings + ellipsis.

Terminal window
npx github:truongnat/rnui#cli add pagination

or directly via the shadcn CLI:

Terminal window
npx shadcn add https://<registry-base>/r/nativewind/pagination.json # or /uniwind/

npm dependencies installed automatically: lucide-react-native

const [page, setPage] = useState(1);
<Pagination page={page} totalPages={10} onPageChange={setPage} />
  • components/ui/pagination.tsx

Installs together with: utils, text, theme