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%;}