I want to display an icon when a certain condition is met, using Hero Icons. I would like this ideally to be displayed as a small inline icon at the end of a line of text. Or alternatively as just a small text size icon. I’ve figured out the logic for when the icon will or won’t appear.
However I can’t seem to properly display the contents of a Hero Icon field. In most cases it simply displays the URL of the icon. Or if I use the image component I get an image but my choices there seem to be “absurdly gigantic” or “slightly less absurdly gigantic”.
Is it possible to append a hero icon to text using, for example, a template column and have the icon display as an icon as it does in the data view? If not is there some other way to accomplish this task? I wish the icons available on buttons and actions rows were available for this purpose…
Hero Icons are images unlike Emoji which are text. You can’t put an image in something that only holds text. My suggestion would be to use emoji or may use an Action Row component or maybe a ‘New Table’ component depending on if you are trying to show data from a single row on a detail screen or show multiple rows of data.
Is there a way to display it as an image and scale it? The image component doesn’t do that well, as noted but is there another trick? I guess a related question is: what is the use case(s) for the Hero Icon field in glide?