Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
    • Anchors
    • Box
    • Col
    • Container
    • ContainerNext
    • FullPageLayout
    • Grid
    • HStack
    • Header
    • Header
    • LayoutGrid
    • Navigation
    • Pagination
    • Row
    • Section
    • Spacer
    • TabList
    • TabList
    • Tabs
    • VStack
  • Overlays
  • Feedback & status
  • Data display
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Layout & containers
  • Container

Container

Centres content within a fixed maximum width. Superseded by `ContainerNext`; this one relies on global styles.

Health
Component health
Source
View on Github
Storybook
View in Storybook
Playground
No Example
Accessibility

compliant

Platform
Web
  • Overview
  • Props
Heads up!

The demos might not render correctly due to the component's deprecated use of global styles. Please refer to the Storybook link above for an accurate representation of the component.

Hello, World!

Container props

NameTypeDefault ValueDescriptionUsage count
alignItems
6 possibilities"center""stretch""flex-start""flex-end""baseline"undefined
backgroundColor
94 possibilities"transparent""action""pink500""pink700""pink900""grey200""grey500""grey600""blue700""grey50""grey100""grey200HighContrast""grey300""grey400""grey600HighContrast""grey700""grey800""grey900""blue50""blue100""blue300""blue500""blue900""teal50""teal100""teal300""teal500""teal700""teal900""pink50""pink100""pink300""pink500HighContrast""pink700HighContrast""pink900HighContrast""yellow50""yellow100""yellow300""yellow500""yellow700""whiteAlpha100""whiteAlpha300""whiteAlpha400""whiteAlpha500""whiteAlpha600""whiteAlpha700""whiteAlpha800""whiteAlpha900""white""black""fluoYellow""cream""lightCream""action50""action100""action300""action500""action700""action900""positive""positive50""positive100""positive300""positive500""positive700""positive900""warning""warning50""warning100""warning300""warning500""warning500HighContrast""warning700""warning700HighContrast""warning900""warning900HighContrast""negative""negative50""negative100""negative300""negative500""negative500HighContrast""negative700""negative700HighContrast""negative900""negative900HighContrast""blue""pink""brand""grey""facebook""twitter""linkedin"undefined
border
94 possibilities"transparent""action""pink500""pink700""pink900""grey200""grey500""grey600""blue700""grey50""grey100""grey200HighContrast""grey300""grey400""grey600HighContrast""grey700""grey800""grey900""blue50""blue100""blue300""blue500""blue900""teal50""teal100""teal300""teal500""teal700""teal900""pink50""pink100""pink300""pink500HighContrast""pink700HighContrast""pink900HighContrast""yellow50""yellow100""yellow300""yellow500""yellow700""whiteAlpha100""whiteAlpha300""whiteAlpha400""whiteAlpha500""whiteAlpha600""whiteAlpha700""whiteAlpha800""whiteAlpha900""white""black""fluoYellow""cream""lightCream""action50""action100""action300""action500""action700""action900""positive""positive50""positive100""positive300""positive500""positive700""positive900""warning""warning50""warning100""warning300""warning500""warning500HighContrast""warning700""warning700HighContrast""warning900""warning900HighContrast""negative""negative50""negative100""negative300""negative500""negative500HighContrast""negative700""negative700HighContrast""negative900""negative900HighContrast""blue""pink""brand""grey""facebook""twitter""linkedin"undefined
borderBottom
94 possibilities"transparent""action""pink500""pink700""pink900""grey200""grey500""grey600""blue700""grey50""grey100""grey200HighContrast""grey300""grey400""grey600HighContrast""grey700""grey800""grey900""blue50""blue100""blue300""blue500""blue900""teal50""teal100""teal300""teal500""teal700""teal900""pink50""pink100""pink300""pink500HighContrast""pink700HighContrast""pink900HighContrast""yellow50""yellow100""yellow300""yellow500""yellow700""whiteAlpha100""whiteAlpha300""whiteAlpha400""whiteAlpha500""whiteAlpha600""whiteAlpha700""whiteAlpha800""whiteAlpha900""white""black""fluoYellow""cream""lightCream""action50""action100""action300""action500""action700""action900""positive""positive50""positive100""positive300""positive500""positive700""positive900""warning""warning50""warning100""warning300""warning500""warning500HighContrast""warning700""warning700HighContrast""warning900""warning900HighContrast""negative""negative50""negative100""negative300""negative500""negative500HighContrast""negative700""negative700HighContrast""negative900""negative900HighContrast""blue""pink""brand""grey""facebook""twitter""linkedin"undefined
borderLeft
94 possibilities"transparent""action""pink500""pink700""pink900""grey200""grey500""grey600""blue700""grey50""grey100""grey200HighContrast""grey300""grey400""grey600HighContrast""grey700""grey800""grey900""blue50""blue100""blue300""blue500""blue900""teal50""teal100""teal300""teal500""teal700""teal900""pink50""pink100""pink300""pink500HighContrast""pink700HighContrast""pink900HighContrast""yellow50""yellow100""yellow300""yellow500""yellow700""whiteAlpha100""whiteAlpha300""whiteAlpha400""whiteAlpha500""whiteAlpha600""whiteAlpha700""whiteAlpha800""whiteAlpha900""white""black""fluoYellow""cream""lightCream""action50""action100""action300""action500""action700""action900""positive""positive50""positive100""positive300""positive500""positive700""positive900""warning""warning50""warning100""warning300""warning500""warning500HighContrast""warning700""warning700HighContrast""warning900""warning900HighContrast""negative""negative50""negative100""negative300""negative500""negative500HighContrast""negative700""negative700HighContrast""negative900""negative900HighContrast""blue""pink""brand""grey""facebook""twitter""linkedin"undefined
borderRight
94 possibilities"transparent""action""pink500""pink700""pink900""grey200""grey500""grey600""blue700""grey50""grey100""grey200HighContrast""grey300""grey400""grey600HighContrast""grey700""grey800""grey900""blue50""blue100""blue300""blue500""blue900""teal50""teal100""teal300""teal500""teal700""teal900""pink50""pink100""pink300""pink500HighContrast""pink700HighContrast""pink900HighContrast""yellow50""yellow100""yellow300""yellow500""yellow700""whiteAlpha100""whiteAlpha300""whiteAlpha400""whiteAlpha500""whiteAlpha600""whiteAlpha700""whiteAlpha800""whiteAlpha900""white""black""fluoYellow""cream""lightCream""action50""action100""action300""action500""action700""action900""positive""positive50""positive100""positive300""positive500""positive700""positive900""warning""warning50""warning100""warning300""warning500""warning500HighContrast""warning700""warning700HighContrast""warning900""warning900HighContrast""negative""negative50""negative100""negative300""negative500""negative500HighContrast""negative700""negative700HighContrast""negative900""negative900HighContrast""blue""pink""brand""grey""facebook""twitter""linkedin"undefined
borderTop
94 possibilities"transparent""action""pink500""pink700""pink900""grey200""grey500""grey600""blue700""grey50""grey100""grey200HighContrast""grey300""grey400""grey600HighContrast""grey700""grey800""grey900""blue50""blue100""blue300""blue500""blue900""teal50""teal100""teal300""teal500""teal700""teal900""pink50""pink100""pink300""pink500HighContrast""pink700HighContrast""pink900HighContrast""yellow50""yellow100""yellow300""yellow500""yellow700""whiteAlpha100""whiteAlpha300""whiteAlpha400""whiteAlpha500""whiteAlpha600""whiteAlpha700""whiteAlpha800""whiteAlpha900""white""black""fluoYellow""cream""lightCream""action50""action100""action300""action500""action700""action900""positive""positive50""positive100""positive300""positive500""positive700""positive900""warning""warning50""warning100""warning300""warning500""warning500HighContrast""warning700""warning700HighContrast""warning900""warning900HighContrast""negative""negative50""negative100""negative300""negative500""negative500HighContrast""negative700""negative700HighContrast""negative900""negative900HighContrast""blue""pink""brand""grey""facebook""twitter""linkedin"undefined
classNamestringundefined
fluidbooleanundefined
fluidWithMarginbooleanundefined
justifyContent
6 possibilities"center""flex-start""flex-end""space-between""space-around"undefined
padding
18 possibilitiesundefined0123456789101214162018Responsive<Padding>
paddingBottom
18 possibilitiesundefined0123456789101214162018Responsive<Padding>
paddingLeft
18 possibilitiesundefined0123456789101214162018Responsive<Padding>
paddingRight
18 possibilitiesundefined0123456789101214162018Responsive<Padding>
paddingTop
18 possibilitiesundefined0123456789101214162018Responsive<Padding>
paddingX
18 possibilitiesundefined0123456789101214162018Responsive<Padding>
paddingY
18 possibilitiesundefined0123456789101214162018Responsive<Padding>
position
5 possibilities"fixed""sticky""relative""absolute"undefined
styleCSSPropertiesundefined
textAlign
8 possibilitiesundefined"start""left""right""end""center""justify"Responsive<TextAlign>

Undocumented props

NameTypeDefault ValueDescriptionUsage count
cssany
idany
refany
Edit this page
Previous
Col
Next
ContainerNext