New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Radio, Checkbox): export required
prop type
#46028
Conversation
Run & review this pull request in StackBlitz Codeflow. |
5150c9a
to
c079f68
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 90a1ca6:
|
c079f68
to
e797f21
Compare
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #46028 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 700 700
Lines 11855 11855
Branches 3161 3161
=========================================
Hits 11855 11855 ☔ View full report in Codecov by Sentry. |
e797f21
to
90a1ca6
Compare
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #46025
💡 Background and solution
📝 Changelog
required
prop of the Radio and Checkbox Componentsrequired
属性的类型定义☑️ Self-Check before Merge
🚀 Summary
🤖[deprecated] Generated by Copilot at 5150c9a
This pull request adds a new
required
prop to theCheckbox
andRadio
components and their respective groups, allowing users to mark them as mandatory for form validation. It also updates the documentation and demos for both components in English and Chinese to reflect the new feature.🔍 Walkthrough
🤖[deprecated] Generated by Copilot at 5150c9a
required
prop to theCheckbox
andRadio
components and their group variants, which enables the native form validation for the inputs when they are set totrue
(link, link, link, link)required
prop from theoptions
array to the individualCheckbox
andRadio
components inside theCheckbox.Group
andRadio.Group
components, respectively, to apply the validation to each option (link, link)required
prop and its type and functionality in the English and Chinese versions of the documentation for theCheckbox
andRadio
components and their group variants (components/checkbox/index.en-US.md
,components/checkbox/index.zh-CN.md
,components/radio/index.en-US.md
,components/radio/index.zh-CN.md
) (link, link, link, link, link, link, link)basic.tsx
demo file for theCheckbox
component to showcase the usage and effect of therequired
prop with bothCheckbox
andRadio
components in a form (components/checkbox/demo/basic.tsx
) (link, link)