Heroicon defined in core_components not working

I assume this would work for static heroicons, but if I wanted to pull the heroicon names from a database or another source, mix tailwind default will not land what I need in app.css. I.e., dynamically setting the icon is not an option. Any advice on that, please?

Unless you can pre-generate a page where all possble icons are listed, so they are included by tailwind.
I have done this when the icon was generated in Elm code and wasn’t picked up.

Thank you @Hermanverschooten yeah that’s what I also figured. Seems a little hacky but could be an acceptable solution.