-
Notifications
You must be signed in to change notification settings - Fork 843
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
Added component
prop to EuiForm
#3010
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
@anishagg17 Can you update this PR based on @snide's guidance from the issue: #2272 (comment) |
@cchaos I have made all necessary changes |
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
@cchaos I used exclusive union function but now it fails the tests. Can you please have a look ? |
Try with this, @anishagg17 type definition
This specifies
jsx
The casting here is okay as we know everything in the component is setup correctly. Conceptually there is a way to fix this without casting, but TypeScript has (or at least had) a bug deciphering what type the |
thanks for you help 👍 |
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3010/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good to me with just one more comment for props comment
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
One last, Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3010/ |
component
prop to EuiForm
Summary
Fixes: #2272
EuiForm can now render
<form>
element too.Screenshot
Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Props have proper autodocs- [ ] Checked for breaking changes and labeled appropriately- [ ] Checked for accessibility including keyboard-only and screenreader modes