I am trying to get a button to display without a label. When I use an empty string as label, I get a warning that it is discouraged for accessibility purposes and I should use label_visibility
instead to hide it. Looking at the posts in this forum, I see that st.radio
has this option to set label_visibility="hidden"
but when I use the same for st.button
, I get the error:
ButtonMixin.button() got an unexpected keyword argument 'label_visibility'
What is the correct way to add this? I am using Streamlit 1.45.1 with python 3.12.2
UPDATE: I now realize that label_visibility
is not available for st.button
. I wonder if it is something that under consideration.