Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add border to st.columns #8547

Open
2 tasks done
jrieke opened this issue Apr 20, 2024 · 2 comments
Open
2 tasks done

Add border to st.columns #8547

jrieke opened this issue Apr 20, 2024 · 2 comments
Labels
feature:st.columns feature:st.metric type:enhancement Requests for feature enhancements or new features

Comments

@jrieke
Copy link
Collaborator

jrieke commented Apr 20, 2024

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

Add a parameter border to st.columns, similar to st.container or st.form.

Why?

We recently added optional borders to st.container. It's really nice for creating card-like layouts, e.g., for BI dashboards. These apps often show different cards with visualizations side by side through st.columns. It would make life a bit easier if we had border directly on columns, so devs don't need to wrap every card in st.container.

How?

Same API as for st.container. Show the border around each column.

Additional Context

Alternatively (or even additionally?), we could think about adding border to more elements, e.g. st.metric.

@jrieke jrieke added type:enhancement Requests for feature enhancements or new features feature:st.columns labels Apr 20, 2024
Copy link

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

@utkanuygur
Copy link

I think I've managed to implement the feature. Can someone review my PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.columns feature:st.metric type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

2 participants