Expand an input text box as user types

Is it possible to expand an input text box as a user inputs text? Meaning the border of the input box will follow the width of their text, all their “returns”, etc.