[TextField] InputAdornment shouldn't wrap
See original GitHub issuestart and end input adormants wraps long lines
- This is not a v0.x issue.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior 🤔
start and end input adormants should not wraps long lines
Current Behavior 😯
long lines are wrapped

Steps to Reproduce 🕹
<TextField
margin="dense"
type="number"
name="price"
InputProps={{
startAdornment: <InputAdornment position="start">blah blah</InputAdornment>,
endAdornment: <InputAdornment position="end">blah blah</InputAdornment>,
}}
/>
Possible solution
add
whiteSpace: "nowrap"
Context 🔦
Your Environment 🌎
| Tech | Version |
|---|---|
| Material-UI | v3.9.2 |
| React | 16.8.2 |
| Browser | chrome |
| TypeScript | - |
| etc. |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (6 by maintainers)
Top Results From Across the Web
[TextField] InputAdornment shouldn't wrap #15240 - GitHub
I have searched the issues of this repository and believe that this is not a duplicate. Expected Behavior. start and end input adormants ......
Read more >InputAdornment should not wrap #15240 - Issuehunt
I have searched the issues of this repository and believe that this is not a duplicate. Expected Behavior. <!--- Describe what should happen....
Read more >React Material-UI TextInput with fixed text along with ...
I want to achieve the below UI for TextInput. It should have a fixed text at end along with a placeholder where the...
Read more >InputAdornment API - Material UI - MUI
API reference docs for the React InputAdornment component. Learn about the props, CSS, and other APIs of this exported module.
Read more >Material-UI | CSS Frameworks compare - Saravanakumar GN
... [TablePagination] Fix responsive display issue (#18668) @r3dm1ke; [TextField] InputAdornment shouldn't wrap (#18641) @TrejGun; [l10n] Add Polish ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

on this page google uses pretty long adorment “@gmail.com” https://material.io/design/components/text-fields.html#filled-text-field
Thanks for your suggestions. Overriding the
InputAdornment’s root CSS withwhite-space: nowrap;did the trick for me.