typing box for renaming things in-game?

how do i make a box that you can click on and then type in that will change a ui text? is there a ui element for this?

use that to gameobject.name