# @choc-ui/paginator 中文文档

规范地址：https://npmcn.com/package/%40choc-ui/paginator/

版本：3\.4\.0
npm 元数据更新时间：2023-08-10T00:19:14.609Z
中文译文更新时间：2026-11-09T14:06:20.216Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40choc-ui/paginator
原文对照：https://npmcn.com/package/%40choc-ui/paginator/?lang=original
源码仓库：https://github.com/anubra266/choc-paginator

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：1.2 MB，33 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- Node.js 要求：\>=10
- 运行依赖：0 个
- peer 依赖：@chakra-ui/react \>=1\.6\.1，react \>=16
- 首次发布：2021-01-28T03:29:26.905Z
- 最新版本发布：2022-01-31T18:04:22.817Z
- 近 30 天下载量：3906（2026-10-10 至 2026-11-08，npm 官方下载统计）
- 已发布版本数：13（近 12 个月 0 个）

## 中文简介

\[!\]\[所有贡献者\](https://img.shields.io/badge/all controductioners-4-orange.svg?style=flat-square\] (#贡献者-)

## 安装

```sh
npm install @choc-ui/paginator
```

也可以使用：`pnpm add @choc-ui/paginator`、`yarn add @choc-ui/paginator`、`bun add @choc-ui/paginator`

## README

# 针叶树

[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](https://npmcn.com/package/%40choc-ui/paginator/#readme-contributors-)

> Chakra UI 的插座

[![NPM](https://img.shields.io/npm/v/@choc-ui/paginator.svg)](https://www.npmjs.com/package/@choc-ui/paginator) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com/)

## 安装

```bash
npm install --save @choc-ui/paginator
#OR
yarn add @choc-ui/paginator
```

## 使用量

[过来](https://choc-ui.tech/docs/packages/pagination)

## 许可证

麻省理工学院 [aubra266 (英语)](https://github.com/anubra266)

## 贡献者

感谢这些伟大的人[emoji 密钥](https://allcontributors.org/docs/en/emoji-key):

<table><tbody><tr><td align="center"><a href="https://github.com/yicru" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars.githubusercontent.com/u/37892222?v=4?s=100" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>弥山一郎</b></sub></a><br><a href="https://github.com/anubra266/choc-paginator/commits?author=yicru" title="Code" rel="nofollow noopener noreferrer">💻</a></td><td align="center"><a href="https://github.com/amaslakov" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars.githubusercontent.com/u/10218892?v=4?s=100" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>阿列克谢·马斯拉科夫</b></sub></a><br><a href="https://github.com/anubra266/choc-paginator/commits?author=amaslakov" title="Code" rel="nofollow noopener noreferrer">💻</a></td><td align="center"><a href="https://polywork.com/anubra266" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars.githubusercontent.com/u/30869823?v=4?s=100" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>亚伯拉罕</b></sub></a><br><a href="https://github.com/anubra266/choc-paginator/commits?author=anubra266" title="Code" rel="nofollow noopener noreferrer">💻</a> <a href="https://github.com/anubra266/choc-paginator/commits?author=anubra266" title="Documentation" rel="nofollow noopener noreferrer">📖</a></td><td align="center"><a href="https://github.com/f-laino" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars.githubusercontent.com/u/81749198?v=4?s=100" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>f-laino (法语)</b></sub></a><br><a href="https://github.com/anubra266/choc-paginator/commits?author=f-laino" title="Code" rel="nofollow noopener noreferrer">💻</a></td></tr></tbody></table>

本项目遵循 [全部贡献者](https://github.com/all-contributors/all-contributors) 规格。 任何捐款都欢迎!

## 常见问题

### @choc-ui/paginator 是什么？

\[\!\]\[所有贡献者\]\(https://img\.shields\.io/badge/all controductioners-4-orange\.svg?style=flat-square\] \(\#贡献者-\)

### 如何安装 @choc-ui/paginator？

在项目目录运行 npm install @choc-ui/paginator，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：@chakra-ui/react（\>=1\.6\.1）、react（\>=16）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @choc-ui/paginator 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @choc-ui/paginator 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @choc-ui/paginator 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=10。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @choc-ui/paginator 可以商用吗？

@choc-ui/paginator 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @choc-ui/paginator 的下载量有多少？

根据 npm 官方下载统计，@choc-ui/paginator 在 2026/10/10 – 2026/11/08 这 30 天内被下载 3,906 次，日均约 130 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @choc-ui/paginator 还在维护吗？

最新版本 3\.4\.0 发布于 2022/02/01（4 年前）；至今共发布 13 个版本，其中过去 12 个月发布了 0 个；首次发布于 2021/01/28。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

