How to show attributes depends on search?

I have attributes called title, name, year, genre, actor, company.
I want to display like this

image of movie.
matched attributes.(number of attributes depends on the search result)

matched attributes will change depends on user search.
it could be one attributes or some attributes.
Also I don’t want to show anything until the user searches.

I think bunch of mustache template will work but no clue where and how to do.

Please advise.
Thank you.

Hi @ynaka, could you provide a codesandbox using one of these codesandbox starter templates?