GkContainer
Constrains content width for readable line lengths. maxWidth maps to sm / md / lg / full.
When to use
Use for page-level content boundaries and readable text widths in dashboards and docs-like views.
Live Examples
Narrow max width
sm max-width with default horizontal padding.
Narrow container with horizontal padding.
Full width, no padding
full removes the side padding for bleed layouts.
Edge to edgewith stack
Section landmark
tag="section" for a named document region.
Use semantic tags when the container represents a landmark region.
API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
tag | string | 'div' | Root element |
maxWidth | 'sm' | 'md' | 'lg' | 'full' | 'md' | Max width |
padded | boolean | true | Horizontal padding |
Slots
| Slot | Description |
|---|---|
default | Content |
Examples
Each scenario under Live Examples includes a copyable Vue snippet (source is imported from the same SFC as the preview).
Accessibility notes
- Choose semantic
tagvalues (section,main,aside) when container boundaries map to landmarks. - Keep heading hierarchy meaningful inside constrained regions.
