Custom component with `st.button` like behaviour

Hello,
How can I create a custom button component with a st.button like behavior?
That is, on a rerun after a click it returns True and on every other run it returns False?

I tried playing with setComponentValue but did not figure a nice way to do it (i.e. avoiding extra re-runs)

Hello,

Look at this thread I wrote a few weeks ago: Creating custom components and manage component reinstantiation

Regards

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