Input text on a textbox on esphome webserver

Hello,

Is it possible to put a text/string on a webpage on the webserver of esphome device and connect it to a variable which you can use in your esphome code?

Would a template select work for you? I haven’t used it just noticed it on the webserver page.