Why is working with icons such a pain!

Feedback

So I can define a custom component with an Icon as input parameter, good, I can even make it a List, also good.... but:

  1. I can't create an app/page state variable of type Icon?!?!

  2. I can't create a Data Type with a field of type Icon?!?!

  3. When I have a custom component, that accepts a List<Icon> as input parameter I basically can't use it whatsoever, because I can only pass a variable that is a List already (independent of the type Icon) to the component. So first I need to create a List (e.g. page state variable), then populate it using actions and then I can pass it, but because of 1 & 2 it is impossible to do for type Icon?!?!

Devs, what did you think?!

5
8 replies