Button shaped checkbox


Is it possible to style a checkbox as a button in Streamlit. That way we can have button functionality without the refresh (and the need to involve state).

It has been done before ( Edit fiddle - JSFiddle - Code Playground), but I donโ€™t know how to implement it in Streamlit

Thanks in advance.

There is a stateful button in streamlit-extras.

1 Like

Thanks @Goyo, I totally forgot about this option.