tvst / st-annotated-text

A simple component to display annotated text in Streamlit apps.
Apache License 2.0
523 stars 41 forks source link

Allow padding to be changed #27

Closed MarkusSagen closed 1 year ago

MarkusSagen commented 2 years ago

Allow padding and border_radius to be changed by passing them as parameters. If they are not passed, the default values are still set

sfc-gh-tteixeira commented 1 year ago

Thanks for the idea. In v4 we now support parameters, but I preferred to use a different notation for that since it allows us to decouple CSS styling from the actual parameter values a bit more.

See the bottom of https://st-annotated-text.streamlit.app for example code.