Nest an expander (st.beta_expander) within an expander?

Hi guys,

I was wondering whether there was a way to nest st.beta_expander within st.beta_expander?

I assume not as I’ve got this message:

… But who knows, there may be a hack! :wink:

Thanks,
Charly

Ahah nope sorry no hack for now :slight_smile: maybe in the future…

You could still get away with the “Hide with checkbox” though:

import streamlit as st

with st.beta_expander("Hi Charly"):
    if st.checkbox("Fake expand"):
        st.write("Hello world")

Fanilo

1 Like

I like it, thanks Fanilo! :slight_smile: