# @hassanmojab/react-modern-calendar-datepicker 中文文档

规范地址：https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/

版本：3\.1\.7
npm 元数据更新时间：2022-04-05T17:01:15.764Z
中文译文更新时间：2026-11-17T11:28:25.679Z
软件包许可：MIT

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

原始 npm 页面：https://www.npmjs.com/package/%40hassanmojab/react-modern-calendar-datepicker
原文对照：https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/?lang=original
项目主页：https://kiarash-z.github.io/react-modern-calendar-datepicker
源码仓库：https://github.com/Kiarash-Z/react-modern-calendar-datepicker

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

- 包体积（解压后）：53.7 kB，6 个文件
- 模块格式：CommonJS
- TypeScript 类型：包内自带
- 运行依赖：1 个
- peer 依赖：react \>=16\.8\.0，react-dom \>=16\.8\.0
- 首次发布：2021-01-10T17:36:05.954Z
- 最新版本发布：2021-01-10T18:02:22.788Z
- 近 30 天下载量：80538（2026-10-18 至 2026-11-16，npm 官方下载统计）
- 已发布版本数：2（近 12 个月 0 个）

## 中文简介

一个现代的,美丽的,定制的 日期采摘器

## 安装

```sh
npm install @hassanmojab/react-modern-calendar-datepicker
```

也可以使用：`pnpm add @hassanmojab/react-modern-calendar-datepicker`、`yarn add @hassanmojab/react-modern-calendar-datepicker`、`bun add @hassanmojab/react-modern-calendar-datepicker`

## README

# 反应- 现代- 日历- 日期选择器

[![Build Status](https://travis-ci.org/Kiarash-Z/react-modern-calendar-datepicker.svg?branch=master)](https://travis-ci.org/Kiarash-Z/react-modern-calendar-datepicker) [![codecov.io](https://codecov.io/github/kiarash-z/react-modern-calendar-datepicker/coverage.svg?branch=master)](https://codecov.io/github/kiarash-z/react-modern-calendar-datepicker?branch=master) ![npm](https://img.shields.io/npm/v/react-modern-calendar-datepicker)

一个现代的,美丽的, 定制的取枣者反应.

[![hero image](https://user-images.githubusercontent.com/20098648/76241893-f6722880-624a-11ea-9a80-eace8a4a27f0.png)](https://kiarash-z.github.io/react-modern-calendar-datepicker)

## 安装

```bash
npm i react-modern-calendar-datepicker

# or if you prefer Yarn:
yarn add react-modern-calendar-datepicker
```

## 页:1

您可以在 [网站.](https://kiarash-z.github.io/react-modern-calendar-datepicker/)

文件分为几节:

-   [开始](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/getting-started)
-   [核心概念](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/core-concepts)
-   [默认值](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/default-values)
-   [最小日期( A)](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/minimum-maximum-date)
-   [禁用日数](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/disabled-days)
-   [自定义](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/customization)
-   [反应指南](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/responsive-guide)
-   [公用事业](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/utilities)
-   [不同区域](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/different-locales)
-   [类型脚本](https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/typescript)

## 贡献者

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

<table><tbody><tr><td align="center"><a href="https://github.com/Kiarash-Z" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars0.githubusercontent.com/u/20098648?v=4" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>基拉什·扎林梅尔</b></sub></a><br><a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/commits?author=Kiarash-Z" title="Code" rel="nofollow noopener noreferrer">💻</a> <a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/commits?author=Kiarash-Z" title="Documentation" rel="nofollow noopener noreferrer">📖</a> <a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/commits?author=Kiarash-Z" title="Tests" rel="nofollow noopener noreferrer">⚠️</a> <a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/issues?q=author%3AKiarash-Z" title="Bug reports" rel="nofollow noopener noreferrer">🐛</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-ideas-Kiarash-Z" title="Ideas, Planning, &amp; Feedback" rel="nofollow noopener noreferrer">🤔</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-a11y-Kiarash-Z" title="Accessibility" rel="nofollow noopener noreferrer">️️️️♿️</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-infra-Kiarash-Z" title="Infrastructure (Hosting, Build-Tools, etc)" rel="nofollow noopener noreferrer">🚇</a> <a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/pulls?q=is%3Apr+reviewed-by%3AKiarash-Z" title="Reviewed Pull Requests" rel="nofollow noopener noreferrer">👀</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-question-Kiarash-Z" title="Answering Questions" rel="nofollow noopener noreferrer">💬</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-tutorial-Kiarash-Z" title="Tutorials" rel="nofollow noopener noreferrer">✅</a></td><td align="center"><a href="http://dribbble.com/Armanrokni" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars3.githubusercontent.com/u/43547854?v=4" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>亚鲁曼·罗克尼</b></sub></a><br><a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-design-armanrokni" title="Design" rel="nofollow noopener noreferrer">🎨</a></td><td align="center"><a href="http://twitter.com/thebrodmann" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars3.githubusercontent.com/u/20781126?v=4" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>穆罕默德·哈桑尼</b></sub></a><br><a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/commits?author=thebrodmann" title="Code" rel="nofollow noopener noreferrer">💻</a> <a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/issues?q=author%3Athebrodmann" title="Bug reports" rel="nofollow noopener noreferrer">🐛</a> <a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/commits?author=thebrodmann" title="Documentation" rel="nofollow noopener noreferrer">📖</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-tutorial-thebrodmann" title="Tutorials" rel="nofollow noopener noreferrer">✅</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-ideas-thebrodmann" title="Ideas, Planning, &amp; Feedback" rel="nofollow noopener noreferrer">🤔</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-question-thebrodmann" title="Answering Questions" rel="nofollow noopener noreferrer">💬</a> <a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/pulls?q=is%3Apr+reviewed-by%3Athebrodmann" title="Reviewed Pull Requests" rel="nofollow noopener noreferrer">👀</a></td><td align="center"><a href="https://github.com/AmirTahani" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars3.githubusercontent.com/u/21058227?v=4" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>埃米尔·塔哈尼</b></sub></a><br><a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/commits?author=AmirTahani" title="Code" rel="nofollow noopener noreferrer">💻</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-a11y-AmirTahani" title="Accessibility" rel="nofollow noopener noreferrer">️️️️♿️</a></td><td align="center"><a href="http://mzed.ir/" rel="nofollow noopener noreferrer"><img alt="" src="https://avatars3.githubusercontent.com/u/53334880?v=4" width="100px;" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><sub><b>穆罕默德·雷扎·齐亚德扎德赫</b></sub></a><br><a href="https://github.com/Kiarash%20Zarinmehr/react-modern-calendar-datepicker/commits?author=themzed" title="Code" rel="nofollow noopener noreferrer">💻</a> <a href="https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/#readme-ideas-themzed" title="Ideas, Planning, &amp; Feedback" rel="nofollow noopener noreferrer">🤔</a></td></tr></tbody></table>

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

## 自由主义

[麻省理工学院](https://npmcn.com/package/%40hassanmojab/react-modern-calendar-datepicker/LICENSE)

## 常见问题

### @hassanmojab/react-modern-calendar-datepicker 是什么？

一个现代的,美丽的,定制的 日期采摘器

### 如何安装 @hassanmojab/react-modern-calendar-datepicker？

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

### @hassanmojab/react-modern-calendar-datepicker 支持 TypeScript 吗？

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

### @hassanmojab/react-modern-calendar-datepicker 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @hassanmojab/react-modern-calendar-datepicker 可以商用吗？

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

### @hassanmojab/react-modern-calendar-datepicker 的下载量有多少？

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

### @hassanmojab/react-modern-calendar-datepicker 还在维护吗？

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

