Container

Group information, create hierarchy, and show related information.

Props

accent
GoabContainerAccent
Sets the style of accent on the container.
Defaults to filled.
maxHeight
string
Sets the maximum height of the container.
maxWidth
string
Sets the maximum width of the container.
minHeight
string
Sets the minimum height of the container.
padding
GoabContainerPadding
Sets the amount of white space in the container.
Defaults to relaxed.
testId
string
Sets a data-testid attribute for automated testing.
type
GoabContainerType
Sets the container and accent bar styling.
Defaults to interactive.
width
GoabContainerWidth
Sets the width of the container.
Defaults to full.
mt, mr, mb, ml
Spacing
Apply margin to the top, right, bottom, and/or left of the component.
accent
GoabContainerAccent
Sets the style of accent on the container.
Defaults to filled.
maxHeight
string
Sets the maximum height of the container.
maxWidth
string
Sets the maximum width of the container.
minHeight
string
Sets the minimum height of the container.
padding
GoabContainerPadding
Sets the amount of white space in the container.
Defaults to relaxed.
testId
string
Sets the data-testid attribute for automated testing.
type
GoabContainerType
Sets the container and accent bar styling.
Defaults to interactive.
width
GoabContainerWidth
Sets the width of the container.
Defaults to full.
mt, mr, mb, ml
Spacing
Apply margin to the top, right, bottom, and/or left of the component.
accent
GoabContainerAccent thick | thin | filled
Sets the style of accent on the container.
Defaults to filled.
maxheight
string
Sets the maximum height of the container.
maxwidth
string
Sets the maximum width of the container.
Defaults to none.
minheight
string
Sets the minimum height of the container.
padding
GoabContainerPadding relaxed | compact
Sets the amount of white space in the container.
Defaults to relaxed.
testid
string
Sets a data-testid attribute for automated testing.
type
GoabContainerType interactive | info | error | success | important | non-interactive
Sets the container and accent bar styling.
Defaults to interactive.
width
GoabContainerWidth full | content
Sets the width of the container.
Defaults to full.
mt, mr, mb, ml
Spacing
Apply margin to the top, right, bottom, and/or left of the component.

ReactNode

actions
ReactNode
Content rendered in the container's actions area, typically buttons or controls.
title
ReactNode
Content rendered in the container's title/heading area.
actions
TemplateRef
Content rendered in the container's actions area, typically buttons or controls.
title
TemplateRef
Content rendered in the container's title/heading area.
actions
slot
Content rendered in the container's actions area, typically buttons or controls.
title
slot
Content rendered in the container's title/heading area.
Examples

Card grid

Card view of case files

Confirm a change

Display user information

Review and action

Show full date in a tooltip

Show status on a card

Type to create a new filter

Types

Use accent='thick' when you need a header area with a title or actions on a container.

Other

Header section

Main content area

Footer section

Don't use a container for general page layout. Containers are for visual emphasis and grouping content.
All GoA Design System components are built to meet WCAG 2.2 AA standards. The following guidelines provide additional context for accessible implementation.

No accessibility-specific guidelines have been documented for this component yet.

View old component docs