Hi @kan, welcome to the Streamlit Community!
Your request sounds perfect for our new Components framework that we’ll be releasing shortly:
Hi @randyzwitch. Thanks for your reply very much. It’s a great idea to try Components framework.
Hi @kan - did you manage to get anywhere with this, would also like this functionality.
You should try the new streamlit component function. https://docs.streamlit.io/en/stable/develop_streamlit_components.html