I want a switch button widget

I want a switch button widget, and support sidebar. Controls the display or hiding of other widgets through the toggle button widget.

Hi @chinasoft2019,

Thanks for the suggestion. We do have a feature request about “show/hide” ability on widgets that would seem to address your interest here. Please read and comment if you have additional suggestions for how this enhancement could work.

Thanks for trying out Streamlit!