-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
area:stylingRelated to styling and appearanceRelated to styling and appearancefeature:markdownRelated to Markdown renderingRelated to Markdown renderingfeature:st.captionRelated to the `st.caption` elementRelated to the `st.caption` elementtype:enhancementRequests for feature enhancements or new featuresRequests for feature enhancements or new features
Description
Problem
As a developer, I'd like to add an argument option to align text content for elements st.markdown, st.caption, and st.text. The available options of the alignment will be left (default option), center, right, and justify.
Solution
MVP:
>>> st.markdown('Lorem ipsum dolor sit amet...', align_text='left') # Default>>> st.markdown('Lorem ipsum dolor sit amet...', align_text='center')>>> st.markdown('Lorem ipsum dolor sit amet...', align_text='right')>>> st.markdown('Lorem ipsum dolor sit amet...', align_text='justify')Possible additions: Add kwargs to the text elements for more flexible options input.
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.
SamuelBradley, tarek-kerbedj, Hidayathamir, HHest, Timo21 and 45 more
Metadata
Metadata
Assignees
Labels
area:stylingRelated to styling and appearanceRelated to styling and appearancefeature:markdownRelated to Markdown renderingRelated to Markdown renderingfeature:st.captionRelated to the `st.caption` elementRelated to the `st.caption` elementtype:enhancementRequests for feature enhancements or new featuresRequests for feature enhancements or new features



