-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
[material-ui][TextField] Handling long placeholder text #42372
Comments
Hey @aayush-makwana , If I understood correctly, you need a way to handle large input text using material-ui library.
Filename: App.js
Filename: TextFieldComponent.js
Hope this helps! |
Please provide a minimal reproduction. It helps us troubleshoot. A live example would be perfect. This StackBlitz sandbox template may be a good starting point. |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
Hello MUI Community,
I'm looking for advice on how to manage placeholder truncation in MUI Input components like
TextField
. When using long placeholder texts, they often get truncated if the text exceeds the width of the input field. This issue is especially problematic on smaller screens or with resizable fields.for large Text Field
![image](https://private-user-images.githubusercontent.com/86557889/333555392-d2002065-0441-4e4e-9de7-b6125f484cae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzUyNzUsIm5iZiI6MTcyMjEzNDk3NSwicGF0aCI6Ii84NjU1Nzg4OS8zMzM1NTUzOTItZDIwMDIwNjUtMDQ0MS00ZTRlLTlkZTctYjYxMjVmNDg0Y2FlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDAyNDkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk4YzM0OTcwM2YxZjVmMTYwNTllZTMxOTdkNzE3YTU5Njg0ODUxYTk0N2RjMWIxNDgwMDg4MjZjNzVmMGQ0YzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jzVBjSDo1gyJ_2xssOXd67F124Il1lYA8DMrsdotIAM)
for small Text Field
![image](https://private-user-images.githubusercontent.com/86557889/333555430-b7eac61e-1b0f-4729-bc3d-8cb39d83911d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzUyNzUsIm5iZiI6MTcyMjEzNDk3NSwicGF0aCI6Ii84NjU1Nzg4OS8zMzM1NTU0MzAtYjdlYWM2MWUtMWIwZi00NzI5LWJjM2QtOGNiMzlkODM5MTFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDAyNDkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhMjhhM2NhNGU5ZjZkNTRkZjJjZGNhNTZiY2RkZTk0ZTBjMjhhYTI5NGE2NjViMDE3OTM2MTE4Zjk3MzVjYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.m2A5BU3huRCmsuP5QRSvXnjFy36w6OKbz-kBm9O1FG4)
Are there MUI-specific techniques or settings that help display the full placeholder or clearly indicate it's been truncated (such as adding an ellipsis)?
or
Has anyone implemented dynamic adjustments of placeholder text in MUI based on the input field size or screen resolution?
Any MUI-focused solutions or examples would be greatly appreciated.
Search keywords:
The text was updated successfully, but these errors were encountered: