Custom component like st.expander

Is it possible to create custom component like st.expander?
I’m looking for a way to create some custom styling/wrapper around one or multiple streamlit containers, similar to what st.expander does.