What problem does it solve?
Poorly organized Streamlit layouts confuse users, hide important controls, and reduce the effectiveness of dashboards and interactive apps; this Skill gives practical rules and patterns to structure content for clarity and usability.
Core Features & Use Cases
- Sidebar guidance: Place only navigation and global filters in the sidebar so primary content stays in the main area.
- Column and container rules: Limit columns to avoid cramped layouts, use ratios for emphasis, and prefer horizontal containers for button groups.
- Dialogs, popovers, and expanders: Use dialogs for focused interactions, popovers for transient settings, and expanders for secondary details while managing session state and reruns.
- Visual grouping and spacing: Use bordered containers, gap settings, and explicit width/height controls to create consistent cards, KPI areas, and responsive panels.
- Use Case: Build a multi-tab analytics dashboard with sidebar-wide filters, a 2–4 column KPI header, grouped charts in bordered containers, and confirmation dialogs for destructive actions.
Quick Start
Move navigation and global filters into st.sidebar, use up to four columns for compact dashboards, wrap related widgets in containers with border=True for visual grouping, and use @st.dialog for confirmations.