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