gamcoh / st-card

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

Multi-line text #35

Closed blacksmithop closed 4 months ago

blacksmithop commented 4 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 4 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