Using the Autocomplete Component

Something like this can we do same for TEXT INPUT? actually i tried but could not do.