JSFiddle - React, Tailwind, and code Playground
HTML
<input placeholder="A Long Placeholder to demonstrate"></input>
<<< Resize to see overflow
CSS
[placeholder]{
text-overflow:ellipsis;
}
input{width:100%;}
<input placeholder="A Long Placeholder to demonstrate"></input>
<<< Resize to see overflow
[placeholder]{
text-overflow:ellipsis;
}
input{width:100%;}