Change Icon via CSS


I am building a reusable Alert and I want to change the icons via css, can I get access to the icons in UI builder?

Thank you

Hi Farid,

You could use two Icon components and control their visibility with the CSS classes.

Alternatively, your Icon component can have some logic to control what icon to use. Here’s an example:

This is the logic I have in there: