Click on st.metric to see a detailed view of the data

Hello Team,
I have a streamlit app that uses streamlit metric. I want to click on the metric to invoke a function to display a table relating to that metric.
how can that be made possible ?
example image

Thanks

Hey @sheneeb!

Thanks for trying out st.metric and welcome to the community! That’s a feature we have on the roadmap (quite often people want to have this for clicking on tables or images) but can’t give you any date for when we’ll get to it. I’ll make sure we also think about st.metric when we work on this!

Cheers, Johannes