Built-in Enum for Icons

Hi!

I want to create a Component that can take an input parameter that determines the icon used in it. As of now I am creating a new Enum containing instances mapped with the icons I know I need. However, I would love it if there existed a built-in Enum that has instances mapped to all the icons of appfarm. This would make it easier to expand the functionality of my Component in the future.

Hi!

Would you be able to share an example use case? That would help me make a request to the platform team on why it should be implemented :slight_smile:

I am making an empty state component. The use case is that I want to have a specific icon for each empty state type. As I want to be able to freely expand which icon I want to which empty state, it would be great if the built-in icons had respective built-in enums.

Thank you! I have now made a request :slight_smile:

1 Like