What problem does it solve?
This Skill helps developers structure Streamlit apps to improve usability, readability, and interaction flow by prescribing where to place navigation, filters, main content, and focused UI elements.
Core Features & Use Cases
- Sidebar guidance: Reserve the sidebar for navigation and global filters only to keep the main area focused on content.
- Column limits and alignment: Recommend a maximum of four columns, show how to set widths and vertical alignment for balanced layouts.
- Containers for grouping: Use horizontal containers for button groups, bordered containers for visual grouping, and gap controls for spacing.
- Dialogs, popovers, and placeholders: Use dialogs for focused interactions and confirmations, popovers for compact settings, and placeholders for incremental loading updates.
- Tabs and expanders: Switchable views with tabs and collapsible secondary content with expanders to reduce visual clutter.
- Sizing controls: Guidance on stretch, content width, and fixed pixel sizing for predictable layout behavior.
- Use Case: Build a dashboard with a sidebar for filters, a two- or three-column main area for charts and tables, expandable details for drilldowns, and a confirmation dialog for destructive actions.
Quick Start
Create a Streamlit app with a sidebar for global filters, a two-column main area for charts and tables, and a confirmation dialog for destructive actions.