Is it possible to use a Shared Components when creating a Streamlit Component?
My use case if the following: I would like to create an “info alert” (
st.sidebar.info("some text")) with a little tweak. The little tweak consists in adding a little icon to “copy” the text of the info alert when clicked.
Instead of recreating the JS and CSS from scratch, I wanted to import the shared component
AlertContainer inside my
MyComponent.tsx file and start from there.
But I failed to do so. It looks like the said Container is not in the
Is there a way to do what I just described?