On click custom component

Is it possible to have an on_click parameter with similar behavior as the normal st.button element, but than with a custom component?

Hi @hoop_snake

Could you elaborate more on the use case on how this should be different than the on_click parameter in st.button. Using on_click with a callback function would work irregardless if it’s a component. Perhaps some additional context would help to better understand your use case.