Search Filter Labels

I am creating a recipe app where I have a search and the user can search by the ingredient. I want the functionality to be when they touch the spacebar to type the next input for it to appear as a label below with a X next to it, therefore deselecting the relevant input.

My search currently looks like Current

But the aim is for it to look like with the label underneath. idea

As this is for an Ionic 2 app, has anyone seen this done before or a tutorial? Or wants to give me some help, that would be great.

NEW: Just noticed that the Stack overflow “Tags” section at the bottom of the page is the exact way I would like this implemented