GC Design SystemComponents
GC Design System Start to use Page templates overviewBasic page Components overviewAlertBreadcrumbsButtonCardCheckboxesContainerDate inputDate modifiedDetailsError messageError summaryFieldsetFile uploaderFooterGridHeaderHeadingIconInputLanguage toggleLinkNoticePaginationRadiosScreenreader-onlySearchSelectSide navigationSignatureStepperTableTextTextareaTheme and topic menuTop navigation CSS Shortcuts overview Reset styles Responsive layoutState Box sizingContainer sizingDisplayOverflowPositionVisibility FontFont familyFont sizeFont styleFont weightLine heightLink colourLink sizeLink text decorationList styleText alignText colourText overflowText transformWord break MarginPadding Align contentAlign itemsAlign selfFlexFlex directionFlex growFlex shrinkFlex wrapGapGrid columnsGrid rowsJustify contentJustify itemsJustify selfOrderPlace contentPlace itemsPlace self Background colourBorder colourBorder radiusBorder styleBorder width Icon namesIcon sizeImage CursorPointer eventsTransition Styles overviewDesign tokensColourSpacingTypography Contact usGet InvolvedFind a demo

Container
<gcds-container>

Also called: wrapper, box. A container is a basic box layout with a set width for its contents.

Container component preview

Check out container use cases to see if they fit the problem you’re solving for.

Problems containers solves

Containers group related content in a space. Use containers to:
  • Arrange content and components in a basic vertical layout using a wrapper.
  • Limit the width of content in a given space within a site or product.
  • Support readability and scannability by reducing the overall length of a line of text and presenting smaller chunks of content at a time.
  • Centre content on a screen or within a viewport.

Grid for a responsive, flexible column layout to position elements on a page. Card for grouping small pieces of related information as a single unit.
Help us improve Have questions or a request? Give feedback on our contact form. Something's wrong? Raise it through GitHub with an account. You'll have access to the team's direct responses, progress made on your issue, and issues raised by others. Give feedback Report an issue on GitHub
2025-05-06