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.