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/ |
cchaos
left a comment
There was a problem hiding this comment.
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