gamcoh / st-card

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

Need some customization #13

Closed fatmagamalgalal closed 1 year ago

fatmagamalgalal commented 1 year ago

I need to customize font size, font family and multi line description. As well as the card width and height.

gamcoh commented 1 year ago

what are you thinking of when you're saying multi line description? Something like that?

card(
  text=["First line", "second line"])
fatmagamalgalal commented 1 year ago

or 'First line\nsecond line" will also be fine.

gamcoh commented 1 year ago

I'm afraid that parsing user input on the fly might bring too much dark magic, so maybe a list is better

fatmagamalgalal commented 1 year ago

ok, no problem, but the size of the card and the style of the font is too essential to use the cards.

gamcoh commented 1 year ago

Yep, I'll try to tackle this issue in the coming days

gamcoh commented 1 year ago

It's done with the last 2 commits