Buttons seem to support an "icon" property.
The feature is however undocumented.
I couldn't find documentation:
- here https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/titlebar
- or here https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/button
How do we use this feature?
Go to the solution
This is an accepted solution.
The icon property on Button isn’t supported. Currently, it exists to cover a specific legacy compatibility case on mobile.
Could you share a bit about your use case for an icon feature?
I was thinking of adding an icon for a Save and Delete button.
We use font-awesome icons in our menus to visually support the label of the button.
Got it, thanks for explaining.
In the meantime, the Contextual Save Bar pattern might also do what you need? It’s available as an App Bridge action.