Button shaped checkbox

Hi

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.

Cheers

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.