Container CSS

Brutalist. Opinionated. Functional.

Home Install Components API

API

<container-box>

Attributes

NameDescriptionTypeDefault
as| 'main' | 'div' | 'footer' | 'header' | 'aside' | 'section' | 'article' | 'nav' | undefined
pstring | undefined
pbstring | undefined
bgstring | undefined
border-colorstring | undefined
border-radiusstring | undefined
border-stylestring | undefined
border-wstring | undefined
border-top-wstring | undefined
border-top-stylestring | undefined
border-top-colorstring | undefined
border-right-wstring | undefined
border-right-stylestring | undefined
border-right-colorstring | undefined
border-bottom-wstring | undefined
border-bottom-stylestring | undefined
border-bottom-colorstring | undefined
border-left-wstring | undefined
border-left-stylestring | undefined
border-left-colorstring | undefined
flexstring | undefined
plstring | undefined
prstring | undefined
ptstring | undefined
wstring | undefined
min-wstring | undefined
max-wstring | undefined
sm-pstring | undefined
sm-pbstring | undefined
sm-bgstring | undefined
sm-border-colorstring | undefined
sm-border-radiusstring | undefined
sm-border-stylestring | undefined
sm-border-wstring | undefined
sm-border-top-wstring | undefined
sm-border-top-stylestring | undefined
sm-border-top-colorstring | undefined
sm-border-right-wstring | undefined
sm-border-right-stylestring | undefined
sm-border-right-colorstring | undefined
sm-border-bottom-wstring | undefined
sm-border-bottom-stylestring | undefined
sm-border-bottom-colorstring | undefined
sm-border-left-wstring | undefined
sm-border-left-stylestring | undefined
sm-border-left-colorstring | undefined
sm-flexstring | undefined
sm-plstring | undefined
sm-prstring | undefined
sm-ptstring | undefined
sm-wstring | undefined
sm-min-wstring | undefined
sm-max-wstring | undefined
md-pstring | undefined
md-pbstring | undefined
md-bgstring | undefined
md-border-colorstring | undefined
md-border-radiusstring | undefined
md-border-stylestring | undefined
md-border-wstring | undefined
md-border-top-wstring | undefined
md-border-top-stylestring | undefined
md-border-top-colorstring | undefined
md-border-right-wstring | undefined
md-border-right-stylestring | undefined
md-border-right-colorstring | undefined
md-border-bottom-wstring | undefined
md-border-bottom-stylestring | undefined
md-border-bottom-colorstring | undefined
md-border-left-wstring | undefined
md-border-left-stylestring | undefined
md-border-left-colorstring | undefined
md-flexstring | undefined
md-plstring | undefined
md-prstring | undefined
md-ptstring | undefined
md-wstring | undefined
md-min-wstring | undefined
md-max-wstring | undefined
lg-pstring | undefined
lg-pbstring | undefined
lg-bgstring | undefined
lg-border-colorstring | undefined
lg-border-radiusstring | undefined
lg-border-stylestring | undefined
lg-border-wstring | undefined
lg-border-top-wstring | undefined
lg-border-top-stylestring | undefined
lg-border-top-colorstring | undefined
lg-border-right-wstring | undefined
lg-border-right-stylestring | undefined
lg-border-right-colorstring | undefined
lg-border-bottom-wstring | undefined
lg-border-bottom-stylestring | undefined
lg-border-bottom-colorstring | undefined
lg-border-left-wstring | undefined
lg-border-left-stylestring | undefined
lg-border-left-colorstring | undefined
lg-flexstring | undefined
lg-plstring | undefined
lg-prstring | undefined
lg-ptstring | undefined
lg-wstring | undefined
lg-min-wstring | undefined
lg-max-wstring | undefined
xl-pstring | undefined
xl-pbstring | undefined
xl-bgstring | undefined
xl-border-colorstring | undefined
xl-border-radiusstring | undefined
xl-border-stylestring | undefined
xl-border-wstring | undefined
xl-border-top-wstring | undefined
xl-border-top-stylestring | undefined
xl-border-top-colorstring | undefined
xl-border-right-wstring | undefined
xl-border-right-stylestring | undefined
xl-border-right-colorstring | undefined
xl-border-bottom-wstring | undefined
xl-border-bottom-stylestring | undefined
xl-border-bottom-colorstring | undefined
xl-border-left-wstring | undefined
xl-border-left-stylestring | undefined
xl-border-left-colorstring | undefined
xl-flexstring | undefined
xl-plstring | undefined
xl-prstring | undefined
xl-ptstring | undefined
xl-wstring | undefined
xl-min-wstring | undefined
xl-max-wstring | undefined
2xl-pstring | undefined
2xl-pbstring | undefined
2xl-bgstring | undefined
2xl-border-colorstring | undefined
2xl-border-radiusstring | undefined
2xl-border-stylestring | undefined
2xl-border-wstring | undefined
2xl-border-top-wstring | undefined
2xl-border-top-stylestring | undefined
2xl-border-top-colorstring | undefined
2xl-border-right-wstring | undefined
2xl-border-right-stylestring | undefined
2xl-border-right-colorstring | undefined
2xl-border-bottom-wstring | undefined
2xl-border-bottom-stylestring | undefined
2xl-border-bottom-colorstring | undefined
2xl-border-left-wstring | undefined
2xl-border-left-stylestring | undefined
2xl-border-left-colorstring | undefined
2xl-flexstring | undefined
2xl-plstring | undefined
2xl-prstring | undefined
2xl-ptstring | undefined
2xl-wstring | undefined
2xl-min-wstring | undefined
2xl-max-wstring | undefined

Properties

NameAttributeDescriptionTypeDefault
asas| 'main' | 'div' | 'footer' | 'header' | 'aside' | 'section' | 'article' | 'nav' | undefined
ppstring | undefined
pbpbstring | undefined
bgbgstring | undefined
borderColorborder-colorstring | undefined
borderRadiusborder-radiusstring | undefined
borderStyleborder-stylestring | undefined
borderWborder-wstring | undefined
borderTopWborder-top-wstring | undefined
borderTopStyleborder-top-stylestring | undefined
borderTopColorborder-top-colorstring | undefined
borderRightWborder-right-wstring | undefined
borderRightStyleborder-right-stylestring | undefined
borderRightColorborder-right-colorstring | undefined
borderBottomWborder-bottom-wstring | undefined
borderBottomStyleborder-bottom-stylestring | undefined
borderBottomColorborder-bottom-colorstring | undefined
borderLeftWborder-left-wstring | undefined
borderLeftStyleborder-left-stylestring | undefined
borderLeftColorborder-left-colorstring | undefined
flexflexstring | undefined
plplstring | undefined
prprstring | undefined
ptptstring | undefined
wwstring | undefined
minWmin-wstring | undefined
maxWmax-wstring | undefined
smPsm-pstring | undefined
smPbsm-pbstring | undefined
smBgsm-bgstring | undefined
smBorderColorsm-border-colorstring | undefined
smBorderRadiussm-border-radiusstring | undefined
smBorderStylesm-border-stylestring | undefined
smBorderWsm-border-wstring | undefined
smBorderTopWsm-border-top-wstring | undefined
smBorderTopStylesm-border-top-stylestring | undefined
smBorderTopColorsm-border-top-colorstring | undefined
smBorderRightWsm-border-right-wstring | undefined
smBorderRightStylesm-border-right-stylestring | undefined
smBorderRightColorsm-border-right-colorstring | undefined
smBorderBottomWsm-border-bottom-wstring | undefined
smBorderBottomStylesm-border-bottom-stylestring | undefined
smBorderBottomColorsm-border-bottom-colorstring | undefined
smBorderLeftWsm-border-left-wstring | undefined
smBorderLeftStylesm-border-left-stylestring | undefined
smBorderLeftColorsm-border-left-colorstring | undefined
smFlexsm-flexstring | undefined
smPlsm-plstring | undefined
smPrsm-prstring | undefined
smPtsm-ptstring | undefined
smWsm-wstring | undefined
smMinWsm-min-wstring | undefined
smMaxWsm-max-wstring | undefined
mdPmd-pstring | undefined
mdPbmd-pbstring | undefined
mdBgmd-bgstring | undefined
mdBorderColormd-border-colorstring | undefined
mdBorderRadiusmd-border-radiusstring | undefined
mdBorderStylemd-border-stylestring | undefined
mdBorderWmd-border-wstring | undefined
mdBorderTopWmd-border-top-wstring | undefined
mdBorderTopStylemd-border-top-stylestring | undefined
mdBorderTopColormd-border-top-colorstring | undefined
mdBorderRightWmd-border-right-wstring | undefined
mdBorderRightStylemd-border-right-stylestring | undefined
mdBorderRightColormd-border-right-colorstring | undefined
mdBorderBottomWmd-border-bottom-wstring | undefined
mdBorderBottomStylemd-border-bottom-stylestring | undefined
mdBorderBottomColormd-border-bottom-colorstring | undefined
mdBorderLeftWmd-border-left-wstring | undefined
mdBorderLeftStylemd-border-left-stylestring | undefined
mdBorderLeftColormd-border-left-colorstring | undefined
mdFlexmd-flexstring | undefined
mdPlmd-plstring | undefined
mdPrmd-prstring | undefined
mdPtmd-ptstring | undefined
mdWmd-wstring | undefined
mdMinWmd-min-wstring | undefined
mdMaxWmd-max-wstring | undefined
lgPlg-pstring | undefined
lgPblg-pbstring | undefined
lgBglg-bgstring | undefined
lgBorderColorlg-border-colorstring | undefined
lgBorderRadiuslg-border-radiusstring | undefined
lgBorderStylelg-border-stylestring | undefined
lgBorderWlg-border-wstring | undefined
lgBorderTopWlg-border-top-wstring | undefined
lgBorderTopStylelg-border-top-stylestring | undefined
lgBorderTopColorlg-border-top-colorstring | undefined
lgBorderRightWlg-border-right-wstring | undefined
lgBorderRightStylelg-border-right-stylestring | undefined
lgBorderRightColorlg-border-right-colorstring | undefined
lgBorderBottomWlg-border-bottom-wstring | undefined
lgBorderBottomStylelg-border-bottom-stylestring | undefined
lgBorderBottomColorlg-border-bottom-colorstring | undefined
lgBorderLeftWlg-border-left-wstring | undefined
lgBorderLeftStylelg-border-left-stylestring | undefined
lgBorderLeftColorlg-border-left-colorstring | undefined
lgFlexlg-flexstring | undefined
lgPllg-plstring | undefined
lgPrlg-prstring | undefined
lgPtlg-ptstring | undefined
lgWlg-wstring | undefined
lgMinWlg-min-wstring | undefined
lgMaxWlg-max-wstring | undefined
xlPxl-pstring | undefined
xlPbxl-pbstring | undefined
xlBgxl-bgstring | undefined
xlBorderColorxl-border-colorstring | undefined
xlBorderRadiusxl-border-radiusstring | undefined
xlBorderStylexl-border-stylestring | undefined
xlBorderWxl-border-wstring | undefined
xlBorderTopWxl-border-top-wstring | undefined
xlBorderTopStylexl-border-top-stylestring | undefined
xlBorderTopColorxl-border-top-colorstring | undefined
xlBorderRightWxl-border-right-wstring | undefined
xlBorderRightStylexl-border-right-stylestring | undefined
xlBorderRightColorxl-border-right-colorstring | undefined
xlBorderBottomWxl-border-bottom-wstring | undefined
xlBorderBottomStylexl-border-bottom-stylestring | undefined
xlBorderBottomColorxl-border-bottom-colorstring | undefined
xlBorderLeftWxl-border-left-wstring | undefined
xlBorderLeftStylexl-border-left-stylestring | undefined
xlBorderLeftColorxl-border-left-colorstring | undefined
xlFlexxl-flexstring | undefined
xlPlxl-plstring | undefined
xlPrxl-prstring | undefined
xlPtxl-ptstring | undefined
xlWxl-wstring | undefined
xlMinWxl-min-wstring | undefined
xlMaxWxl-max-wstring | undefined
xxlP2xl-pstring | undefined
xxlPb2xl-pbstring | undefined
xxlBg2xl-bgstring | undefined
xxlBorderColor2xl-border-colorstring | undefined
xxlBorderRadius2xl-border-radiusstring | undefined
xxlBorderStyle2xl-border-stylestring | undefined
xxlBorderW2xl-border-wstring | undefined
xxlBorderTopW2xl-border-top-wstring | undefined
xxlBorderTopStyle2xl-border-top-stylestring | undefined
xxlBorderTopColor2xl-border-top-colorstring | undefined
xxlBorderRightW2xl-border-right-wstring | undefined
xxlBorderRightStyle2xl-border-right-stylestring | undefined
xxlBorderRightColor2xl-border-right-colorstring | undefined
xxlBorderBottomW2xl-border-bottom-wstring | undefined
xxlBorderBottomStyle2xl-border-bottom-stylestring | undefined
xxlBorderBottomColor2xl-border-bottom-colorstring | undefined
xxlBorderLeftW2xl-border-left-wstring | undefined
xxlBorderLeftStyle2xl-border-left-stylestring | undefined
xxlBorderLeftColor2xl-border-left-colorstring | undefined
xxlFlex2xl-flexstring | undefined
xxlPl2xl-plstring | undefined
xxlPr2xl-prstring | undefined
xxlPt2xl-ptstring | undefined
xxlW2xl-wstring | undefined
xxlMinW2xl-min-wstring | undefined
xxlMaxW2xl-max-wstring | undefined

<container-flex>

Attributes

NameDescriptionTypeDefault
as| 'main' | 'div' | 'footer' | 'header' | 'aside' | 'section' | 'article' | 'nav' | undefined
align-itemsstring | undefined
directionstring | undefined
flexstring | undefined
gapstring | undefined
justify-contentstring | undefined
wstring | undefined
min-wstring | undefined
max-wstring | undefined
sm-align-itemsstring | undefined
sm-directionstring | undefined
sm-flexstring | undefined
sm-gapstring | undefined
sm-justify-contentstring | undefined
sm-wstring | undefined
sm-min-wstring | undefined
sm-max-wstring | undefined
md-align-itemsstring | undefined
md-directionstring | undefined
md-flexstring | undefined
md-gapstring | undefined
md-justify-contentstring | undefined
md-wstring | undefined
md-min-wstring | undefined
md-max-wstring | undefined
lg-align-itemsstring | undefined
lg-directionstring | undefined
lg-flexstring | undefined
lg-gapstring | undefined
lg-justify-contentstring | undefined
lg-wstring | undefined
lg-min-wstring | undefined
lg-max-wstring | undefined
xl-align-itemsstring | undefined
xl-directionstring | undefined
xl-flexstring | undefined
xl-gapstring | undefined
xl-justify-contentstring | undefined
xl-wstring | undefined
xl-min-wstring | undefined
xl-max-wstring | undefined
2xl-align-itemsstring | undefined
2xl-directionstring | undefined
2xl-flexstring | undefined
2xl-gapstring | undefined
2xl-justify-contentstring | undefined
2xl-wstring | undefined
2xl-min-wstring | undefined
2xl-max-wstring | undefined

Properties

NameAttributeDescriptionTypeDefault
asas| 'main' | 'div' | 'footer' | 'header' | 'aside' | 'section' | 'article' | 'nav' | undefined
alignItemsalign-itemsstring | undefined
directiondirectionstring | undefined
flexflexstring | undefined
gapgapstring | undefined
justifyContentjustify-contentstring | undefined
wwstring | undefined
minWmin-wstring | undefined
maxWmax-wstring | undefined
smAlignItemssm-align-itemsstring | undefined
smDirectionsm-directionstring | undefined
smFlexsm-flexstring | undefined
smGapsm-gapstring | undefined
smJustifyContentsm-justify-contentstring | undefined
smWsm-wstring | undefined
smMinWsm-min-wstring | undefined
smMaxWsm-max-wstring | undefined
mdAlignItemsmd-align-itemsstring | undefined
mdDirectionmd-directionstring | undefined
mdFlexmd-flexstring | undefined
mdGapmd-gapstring | undefined
mdJustifyContentmd-justify-contentstring | undefined
mdWmd-wstring | undefined
mdMinWmd-min-wstring | undefined
mdMaxWmd-max-wstring | undefined
lgAlignItemslg-align-itemsstring | undefined
lgDirectionlg-directionstring | undefined
lgFlexlg-flexstring | undefined
lgGaplg-gapstring | undefined
lgJustifyContentlg-justify-contentstring | undefined
lgWlg-wstring | undefined
lgMinWlg-min-wstring | undefined
lgMaxWlg-max-wstring | undefined
xlAlignItemsxl-align-itemsstring | undefined
xlDirectionxl-directionstring | undefined
xlFlexxl-flexstring | undefined
xlGapxl-gapstring | undefined
xlJustifyContentxl-justify-contentstring | undefined
xlWxl-wstring | undefined
xlMinWxl-min-wstring | undefined
xlMaxWxl-max-wstring | undefined
xxlAlignItems2xl-align-itemsstring | undefined
xxlDirection2xl-directionstring | undefined
xxlFlex2xl-flexstring | undefined
xxlGap2xl-gapstring | undefined
xxlJustifyContent2xl-justify-contentstring | undefined
xxlW2xl-wstring | undefined
xxlMinW2xl-min-wstring | undefined
xxlMaxW2xl-max-wstring | undefined

<container-flexcol>

Attributes

NameDescriptionTypeDefault
as| 'main' | 'div' | 'footer' | 'header' | 'aside' | 'section' | 'article' | 'nav' | undefined
align-itemsstring | undefined
flexstring | undefined
gapstring | undefined
justify-contentstring | undefined
wstring | undefined
min-wstring | undefined
max-wstring | undefined
sm-align-itemsstring | undefined
sm-flexstring | undefined
sm-gapstring | undefined
sm-justify-contentstring | undefined
sm-wstring | undefined
sm-min-wstring | undefined
sm-max-wstring | undefined
md-align-itemsstring | undefined
md-flexstring | undefined
md-gapstring | undefined
md-justify-contentstring | undefined
md-wstring | undefined
md-min-wstring | undefined
md-max-wstring | undefined
lg-align-itemsstring | undefined
lg-flexstring | undefined
lg-gapstring | undefined
lg-justify-contentstring | undefined
lg-wstring | undefined
lg-min-wstring | undefined
lg-max-wstring | undefined
xl-align-itemsstring | undefined
xl-flexstring | undefined
xl-gapstring | undefined
xl-justify-contentstring | undefined
xl-wstring | undefined
xl-min-wstring | undefined
xl-max-wstring | undefined
2xl-align-itemsstring | undefined
2xl-flexstring | undefined
2xl-gapstring | undefined
2xl-justify-contentstring | undefined
2xl-wstring | undefined
2xl-min-wstring | undefined
2xl-max-wstring | undefined

Properties

NameAttributeDescriptionTypeDefault
asas| 'main' | 'div' | 'footer' | 'header' | 'aside' | 'section' | 'article' | 'nav' | undefined
alignItemsalign-itemsstring | undefined
flexflexstring | undefined
gapgapstring | undefined
justifyContentjustify-contentstring | undefined
wwstring | undefined
minWmin-wstring | undefined
maxWmax-wstring | undefined
smAlignItemssm-align-itemsstring | undefined
smFlexsm-flexstring | undefined
smGapsm-gapstring | undefined
smJustifyContentsm-justify-contentstring | undefined
smWsm-wstring | undefined
smMinWsm-min-wstring | undefined
smMaxWsm-max-wstring | undefined
mdAlignItemsmd-align-itemsstring | undefined
mdFlexmd-flexstring | undefined
mdGapmd-gapstring | undefined
mdJustifyContentmd-justify-contentstring | undefined
mdWmd-wstring | undefined
mdMinWmd-min-wstring | undefined
mdMaxWmd-max-wstring | undefined
lgAlignItemslg-align-itemsstring | undefined
lgFlexlg-flexstring | undefined
lgGaplg-gapstring | undefined
lgJustifyContentlg-justify-contentstring | undefined
lgWlg-wstring | undefined
lgMinWlg-min-wstring | undefined
lgMaxWlg-max-wstring | undefined
xlAlignItemsxl-align-itemsstring | undefined
xlFlexxl-flexstring | undefined
xlGapxl-gapstring | undefined
xlJustifyContentxl-justify-contentstring | undefined
xlWxl-wstring | undefined
xlMinWxl-min-wstring | undefined
xlMaxWxl-max-wstring | undefined
xxlAlignItems2xl-align-itemsstring | undefined
xxlFlex2xl-flexstring | undefined
xxlGap2xl-gapstring | undefined
xxlJustifyContent2xl-justify-contentstring | undefined
xxlW2xl-wstring | undefined
xxlMinW2xl-min-wstring | undefined
xxlMaxW2xl-max-wstring | undefined

<container-flexrow>

Attributes

NameDescriptionTypeDefault
as| 'main' | 'div' | 'footer' | 'header' | 'aside' | 'section' | 'article' | 'nav' | undefined
align-itemsstring | undefined
flexstring | undefined
gapstring | undefined
justify-contentstring | undefined
wstring | undefined
min-wstring | undefined
max-wstring | undefined
sm-align-itemsstring | undefined
sm-flexstring | undefined
sm-gapstring | undefined
sm-justify-contentstring | undefined
sm-wstring | undefined
sm-min-wstring | undefined
sm-max-wstring | undefined
md-align-itemsstring | undefined
md-flexstring | undefined
md-gapstring | undefined
md-justify-contentstring | undefined
md-wstring | undefined
md-min-wstring | undefined
md-max-wstring | undefined
lg-align-itemsstring | undefined
lg-flexstring | undefined
lg-gapstring | undefined
lg-justify-contentstring | undefined
lg-wstring | undefined
lg-min-wstring | undefined
lg-max-wstring | undefined
xl-align-itemsstring | undefined
xl-flexstring | undefined
xl-gapstring | undefined
xl-justify-contentstring | undefined
xl-wstring | undefined
xl-min-wstring | undefined
xl-max-wstring | undefined
2xl-align-itemsstring | undefined
2xl-flexstring | undefined
2xl-gapstring | undefined
2xl-justify-contentstring | undefined
2xl-wstring | undefined
2xl-min-wstring | undefined
2xl-max-wstring | undefined

Properties

NameAttributeDescriptionTypeDefault
asas| 'main' | 'div' | 'footer' | 'header' | 'aside' | 'section' | 'article' | 'nav' | undefined
alignItemsalign-itemsstring | undefined
flexflexstring | undefined
gapgapstring | undefined
justifyContentjustify-contentstring | undefined
wwstring | undefined
minWmin-wstring | undefined
maxWmax-wstring | undefined
smAlignItemssm-align-itemsstring | undefined
smFlexsm-flexstring | undefined
smGapsm-gapstring | undefined
smJustifyContentsm-justify-contentstring | undefined
smWsm-wstring | undefined
smMinWsm-min-wstring | undefined
smMaxWsm-max-wstring | undefined
mdAlignItemsmd-align-itemsstring | undefined
mdFlexmd-flexstring | undefined
mdGapmd-gapstring | undefined
mdJustifyContentmd-justify-contentstring | undefined
mdWmd-wstring | undefined
mdMinWmd-min-wstring | undefined
mdMaxWmd-max-wstring | undefined
lgAlignItemslg-align-itemsstring | undefined
lgFlexlg-flexstring | undefined
lgGaplg-gapstring | undefined
lgJustifyContentlg-justify-contentstring | undefined
lgWlg-wstring | undefined
lgMinWlg-min-wstring | undefined
lgMaxWlg-max-wstring | undefined
xlAlignItemsxl-align-itemsstring | undefined
xlFlexxl-flexstring | undefined
xlGapxl-gapstring | undefined
xlJustifyContentxl-justify-contentstring | undefined
xlWxl-wstring | undefined
xlMinWxl-min-wstring | undefined
xlMaxWxl-max-wstring | undefined
xxlAlignItems2xl-align-itemsstring | undefined
xxlFlex2xl-flexstring | undefined
xxlGap2xl-gapstring | undefined
xxlJustifyContent2xl-justify-contentstring | undefined
xxlW2xl-wstring | undefined
xxlMinW2xl-min-wstring | undefined
xxlMaxW2xl-max-wstring | undefined

<my-element>

An example element.

Attributes

NameDescriptionTypeDefault
nameThe name to say "Hello" to.string'World'
countThe number of times the button has been clicked.number0

Properties

NameAttributeDescriptionTypeDefault
namenameThe name to say "Hello" to.string'World'
countcountThe number of times the button has been clicked.number0

Methods

NameParametersDescriptionReturn
sayHello
NameDescriptionType
nameThe name to say "Hello" tostring
Formats a greetingstring

Events

NameDescription
count-changedIndicates when the count changes

Slots

NameDescription
(default)This element has a slot

CSS Shadow Parts

NameDescription
buttonThe button

GitHub