Figma
Component Status
Status
HTML
React
Design Usage
A Container is a structural utility that provides consistent width, alignment, and padding for page content. It is typically placed inside a Section to ensure content is aligned with the grid and adapts fluidly across different devices and viewports.
When to Use
- To wrap page content inside a Section for consistent alignment and semantic grouping.
- For responsive layouts where content should adapt to screen size while maintaining readable line lengths.
- To ensure consistent horizontal padding across the site.
- To constrain content width in large screens while still keeping it fluid.
When Not to Use
- For semantic grouping of content – use Section instead.
- For complex multi-column layouts – use Grid or Matrix.
- For small inline groupings – use Box, Card, or Stack.
- For overlays or layered components – use Modal, Drawer, or Dropdown.
Best Practices
- Always use Container inside a Section, not as a standalone structural block.
- Apply consistent horizontal padding across all Containers for visual rhythm.
- Avoid nesting multiple Containers unnecessarily.
- Use Containers to limit line length for readability (especially text-heavy content).
- Ensure Containers scale fluidly across breakpoints while maintaining alignment.