Interact with Bootstrap

Hi All,
I got it run some bootstrap code like buttons

This is my code

        <div class="btn-group" role="group" aria-label="Basic mixed styles example">
        <button type="button" class="btn btn-danger">Left</button>
        <button type="button" class="btn btn-warning">Middle</button>
        <button type="button" class="btn btn-success">Right</button>
    st.markdown(buttons, unsafe_allow_html= True)

But, I would like to know how can I intercept button click from some this buttons ?

Hi @ricardo.pascoal , have a look at this link

by @asehmi

You could also experiment with this library: streamlit-javascript · PyPI


1 Like

Thanks for answering !

I thought it would be something simpler with less code, after all, I believe this is the idea for Streamlit, but I see that we still don’t have the resources to do so.

Otherwise, I still have the opinion that we need to get around this type of problem, providing better customization through Streamlit

We need more abstraction by Streamlit.

Thanks anyway @Shawn_Pereira

Hi @ricardo.pascoal, until Steamlit provides this functionality, here’s another link I found, in case you are interested: streamlit-bridge · PyPI


1 Like

Thanks @Shawn_Pereira !
I´m gonna try it