gamcoh / st-card

Streamlit component for UI cards
https://pypi.org/project/streamlit-card/
MIT License
119 stars 21 forks source link

Multi-line text #35

Closed blacksmithop closed 6 months ago

blacksmithop commented 6 months ago

Is there anyway for me to have multi-line text inside a card? The \n seem to be getting ignored

image

gamcoh commented 6 months ago

In the README you can see:

from streamlit_card import card

res = card(
    title="Streamlit Card",
    text=["This is a test card", "This is a subtext"],
    image="https://placekitten.com/500/500",
)

you can use a list of texts