Suggestion List after user input

Hi I want to show a user a list based on his input.
So, for example, he has items in his Local Storage or Firebase and if he enters a new item based on the input his storage is used to generate a list. Is that possible?