Clickable container that acts like a big button?

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?

9 Likes

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)
2 Likes

i require with different font and icon included

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