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:

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 >")

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

