How to make a component that can contain children like st.container?

I want to create a custom container component that takes style as an argument. Then, I can add various custom containers on one page, each with different colors and borders.

Have a look at the streamlit-extras package, specifically the styled_container.

1 Like