Skip to content

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

PropTypeDefaultDescription
tagstring'div'Root element
maxWidth'sm' | 'md' | 'lg' | 'full''md'Max width
paddedbooleantrueHorizontal padding

Slots

SlotDescription
defaultContent

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 tag values (section, main, aside) when container boundaries map to landmarks.
  • Keep heading hierarchy meaningful inside constrained regions.

Released under the MIT License.