Feature request: (image) button

Can I add an image (instead of text / caption) to a button? Could it be made possible, without the use of markdown/html?

Can I also set the width of my buttons, so that all the buttons on my sidebar are of the same width? Also, without markup/html?


1 Like

Thanks for your question @Shawn_Pereira!

Currently this is only feasible via markdown. E.g. below for a clickable download button to Google oauth consent screen:

            "###### [![this is an image link](https://i.imgur.com/mQAQwvt.png)](https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=686079794781-0bt8ot3ie81iii7i17far5vj4s0p20t7.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fwebmasters.readonly&state=vryYlMrqKikWGlFVwqhnMpfqr1HMiq&prompt=consent&access_type=offline)"

I’ll let the Devs know about your suggestion.

Happy Streamlitin’! :balloon::raised_hands:


Thank you @Charly_Wargnier, will try this first thing tomorrow morning. :slight_smile: