-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Input] Reorganize the Input and Textarea components #71
Comments
There is a POC in the old repo for the Input part, I can finish it up in the new repo once |
@michaldudak As I understand things, either a developer needs: a. an input, and he uses So I don't understand this GitHub issue. What problem is there to fix? The issue seems to suggest that developers building design systems should use I conclude that the right product experience is the current one, and that the right next step is to close this issue. #recommendation. |
This comes from @colmtuite's audit: https://www.notion.so/mui-org/base-ui-Audit-0241b1291ff24c278ab1473f874c47d0?pvs=4#67e90e0c43fa4ac6a42f9c12775cfb25 It may turn out that the Input component is not needed in Base UI, and the native HTML input will suffice — we haven't designed it yet. Perhaps there will be value in having Form Control integration. As for the textarea, I'd be in favor of simplifying the name of the existing component to just Textarea and provide and autosizing and (possibly, TBD) Form Control integration features. |
@oliviertassinari My thinking was along the same as your options a, b, c, and d. This issue arose from that. Currently, you can turn an Input into a Textarea via a prop, which is confusing and useless. If you need a textarea, just use a textarea. So this is a proposal to remove that functionality from Input. As Michal mentioned, it's looking like we have no use case for Input at all in Base UI, since people can just style a native |
We have decided to deprecate TextareaAutosize mui/material-ui#43720 |
On the last team meeting we agreed to postpone this decision when we're closer to the release. We'll see if the browser support is decent enough for us to deprecate it. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
Currently, the Input can act as either a single-line
<input>
or a multi-line<textarea>
. This leads to unnecessary branching in code and a higher overhead (it is unlikely that the component will change from single to multiline during its lifetime).Additionally, we have the TextareaAutosize component, that handles just the resizing feature of the
textarea
.This is a proposal to remove the multiline feature from the Input and move it to the Textarea component (that could also include the autosize feature).
Search keywords:
The text was updated successfully, but these errors were encountered: