[docs] TextField examples have endAdornment
as a prop, but implementation requires it on InputProps
#31421
Open
2 tasks done
Labels
component: text field
This is the name of the generic UI component, not the React module!
docs
Improvements or additions to the documentation
Duplicates
Latest version
Current behavior 😯
In the docs here: https://mui.com/components/text-fields/#main-content
It shows that a standard TextField should take an endAdornment prop directly:
But the actual implementation seems to require it to be inside
InputProps
:I'm not really sure where the correct place to update the docs is (likely in the code definition itself?) If you agree this is wrong, and can point me where the right place to update it is, I can send a PR in.
Expected behavior 🤔
Docs might be wrong? Should be
Steps to reproduce 🕹
N/A
Context 🔦
N/A
Your environment 🌎
N/A
The text was updated successfully, but these errors were encountered: