Skip to content

docs: remove stale Input.TextArea references#165

Merged
afc163 merged 1 commit intoreact-component:masterfrom
QDyanbing:docs
Mar 22, 2026
Merged

docs: remove stale Input.TextArea references#165
afc163 merged 1 commit intoreact-component:masterfrom
QDyanbing:docs

Conversation

@QDyanbing
Copy link
Contributor

@QDyanbing QDyanbing commented Mar 21, 2026

统一清理了 rc-input 中残留的 Input.TextArea 相关描述和示例,改为当前实际支持的命名导出方式:

Summary by CodeRabbit

文档

  • 更新了 TextArea 组件的使用文档和导入指南
  • 修改了示例代码以反映组件的最新调用方式
  • 调整了 API 参考中的相关说明

@coderabbitai
Copy link

coderabbitai bot commented Mar 21, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 88e4ae18-119f-4e7f-a0fa-866abd44871b

📥 Commits

Reviewing files that changed from the base of the PR and between 6420856 and 07230e1.

📒 Files selected for processing (1)
  • README.md

Walkthrough

更新README.md文档,将TextArea的导入和使用方式从Input.TextArea改为使用来自@rc-component/input的命名导出TextArea,同时调整相应的代码示例和API说明。

Changes

Cohort / File(s) Summary
README文档更新
README.md
更新导入声明和JSX用法,从默认导入Input并使用Input.TextArea改为导入命名导出TextArea;修改示例代码的render调用和textareaRef的使用方式;调整API表格中关于type="textarea"的指导说明。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • zombieJ

Poem

🐰 旧式的输入框,换上新装扮,
Input.TextArea换成TextArea
文档更清爽,使用也舒坦,
命名导出好,API更亮眼!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题清晰准确地总结了主要变更:移除过时的Input.TextArea引用,替换为命名导出的TextArea。标题与README中的所有更改完全对应。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing the clarity and accuracy of the @rc-component/input library's documentation. It systematically updates all instances where Input.TextArea was referenced, aligning the documentation with the current implementation that favors the direct named export of TextArea. This change ensures that users are guided towards the correct and supported way of utilizing the TextArea component, improving the overall developer experience and reducing potential confusion.

Highlights

  • Documentation Update: Updated the README.md to remove all stale references to Input.TextArea and replace them with the currently supported named export TextArea.
  • Code Examples Refinement: Modified all code examples within the documentation to directly import and use TextArea as a named export, ensuring consistency with current best practices.
  • API Description Clarification: Revised the API table description for the type property to explicitly recommend using the named TextArea export for textarea functionality.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

这个 Pull Request 清理了文档中残留的 Input.TextArea 相关描述和示例,改为使用命名导出的 TextArea 组件。我审查了 README.md 文件中的所有变更,这些变更包括更新使用示例、API 描述以及 textareaRef 的示例代码,以移除对 Input.TextArea 的引用。这些修改与 PR 的目标一致,确保了文档与当前推荐的 API 用法保持同步。

@codecov
Copy link

codecov bot commented Mar 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.34%. Comparing base (6420856) to head (07230e1).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #165   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files          11       11           
  Lines         424      424           
  Branches      136      136           
=======================================
  Hits          417      417           
  Misses          7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@afc163 afc163 merged commit 5d1a32d into react-component:master Mar 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants