Adding icons to the buttons within the ui-title-bar component

Does anyone know if it’s currently possible or on the roadmap to support adding icons inside the button element of the ui-title-bar component? I’m wanting add an icon similar to how title bar buttons appear throughout the Shopify admin:

Screenshot

From what I’ve seen in the docs and through testing, it looks like the button children can only be a string and doesn’t support passing in HTML or Polaris components. Just wondering if there’s an existing workaround or if support for this is planned?

1 Like

Hey @Joshua_Lucas :waving_hand: - thanks for reaching out. Right now, we don’t support adding icons inside the button element for the ui-title-bar component, but I did want to touch base with you here to let you know I reached out to the product team on this and they do agree that it would make sense to enable this. Can’t guarantee a turnaround time or if this will be implemented, but we’ve logged it as a feature request on our end. Thanks again for flagging this.

1 Like

Sounds great, thank you @Alan_G!!

1 Like

@Alan_G has this been implemented? Or still on waiting list?

Hey @Natalia_Hashimoto (and all) :waving_hand: thanks for following up. This still hasn’t been implemented yet, but I’ve shared that you reached out on this internally. I still can’t guarantee a turnaround time, but wanted to follow up here to let you know it’s still something that we have on our radar.