Is there any way to add text to the sidebar button icon?

I was wondering if there was any way to write text in the sidebar button icon using markdown (unsafe_allow_html=True). I am looking forward to having something like this:
image

I’m not sure what the difference is here to what you want to do?

import streamlit as st


btn = st.sidebar.button("Some text >")

image

Hi Randy,

Thanks for the reply! The sidebar icon looks like this after collapsing:


There is an arrow.

I want to do something like this:


I want to add the text before the arrow.

Ah, not creating a button element, but the expander. No, there isn’t currently a way to do that, but please feel free to open a feature request on GitHub.

Best,
Randy