Is there a way to have a button behave as a checkbox (keeping its value)

Dear all,

I would love to have a checkbox with a button appearance. Or a method to let your button behave like a checkbox. Do you know if this is possible?

Cheers,

Are you perhaps looking for a toggle?

https://extras.streamlitapp.com/Toggle%20button / GitHub - arnaudmiribel/streamlit-extras: Discover, try, install and share Streamlit re-usable bits we call "extras"!

Thanks will! I think I can use this to make a better UI for my project!

1 Like