Questions and discussions about using the Shopify CLI and Shopify-built libraries.
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?
Solved! Go to the solution
This is an accepted solution.
Hi Bart,
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?
Iain
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi Bart,
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?
Iain
To learn more visit the Shopify Help Center or the Community Blog.
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.
To learn more visit the Shopify Help Center or the Community Blog.