-
Notifications
You must be signed in to change notification settings - Fork 3
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のProps型を修正 #1560
base: main
Are you sure you want to change the base?
Conversation
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (4bca22b)
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
Deploying for-ui with Cloudflare Pages
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
User description
チケット
実装内容
HTMLInputElement
に推論されるように修正スクリーンショット
相談内容(あれば)
Type
bug_fix, enhancement
Description
Checkbox
andRadio
components to correctly infer theref
prop type asHTMLInputElement
._CheckboxProps
and_RadioProps
forCheckbox
andRadio
components respectively.CheckboxProps
andRadioProps
usingComponentPropsWithRef
to ensure correct ref typing.Changes walkthrough
Checkbox.tsx
Refactor Checkbox Props for Correct Ref Typing
packages/for-ui/src/checkbox/Checkbox.tsx
ComponentPropsWithRef
fromreact
.CheckboxProps
type to useComponentPropsWithRef
.Checkbox
component to use a new internal props type_CheckboxProps
.CheckboxProps
asComponentPropsWithRef
of theCheckbox
component.
Radio.tsx
Refactor Radio Props for Correct Ref Typing
packages/for-ui/src/radio/Radio.tsx
ComponentPropsWithRef
fromreact
.RadioProps
type to useComponentPropsWithRef
.Radio
component to use a new internal props type_RadioProps
.RadioProps
asComponentPropsWithRef
of theRadio
component.