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.

Something like those colored expanders in streamlit-book? Other goodies — streamlit_book documentation (streamlit-book.readthedocs.io)

If yes, you can use this library ( sebastiandres/streamlit_book: A framework for creating streamlit apps from markdown and python (github.com)) and even peek at the source code on github to extract the parts you need :wink:

Have a nice day,
Fanilo

2 Likes