How to use api to hide icons

Is there a method that lets you hide icons, similar to how api.replaceIcon lets you replace them?

I am not following, where do you want to “hide icons”? That would typically be CSS, nothing to do with the API.

Bit of an unusual use case: I wanted to show and hide certain things for different trust levels and I didn’t think I could do that with css without invoking primary groups but I figured out how to do it via How to make a theme component for TL-based banner. :slight_smile:

3 Likes