Is there a way to create something like a clickable st.container that acts like a button, or a big button that can support multiple text elements inside of it?
are you able to achieve this? please let me know
The label in st.button
supports markdown and that could be as long as needed.
import streamlit as st
label = (
":dog: This is some *looooooooooooooooooog* multiline text :cat:\n\n" * 6
+ "Here is some :rainbow-background[more text]\n\n" * 10
+ "More :) " * 100
)
st.title("A big button")
st.button(label, use_container_width=True)
I found the solution like if streamlit default component supports it is better to use streamlit custom component, and it was very easy to achieve the same design and callback functions as per our requirement quickly , the following vide helped me thanks
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.