Container
Sitecore Content SDK atom: flex layout container configured by the first breakpoints entry. Supports column counts, stacking, gap, and nested Container children.
Arrange a section
Split a row into columns, stack regions vertically, and nest another layout when a column needs its own flow.
Columns
Equal shares, or a list of widths when the split should be uneven.
Direction
Row places children side by side. Column stacks them from top to bottom.
Nesting
Drop a layout inside a layout to mix a media column with stacked copy.
Installation
pnpm dlx shadcn@latest add https://content-kit.vercel.app/r/container.jsonUsage
Properties
breakpointsobject[]OptionalLayout definitions. Only the first entry is currently used and applies at all viewport widths. Provide one entry; the array is retained for future responsive breakpoint support.
Item shape
classNamestringOptionalAdditional CSS class name(s) applied to the container.
columnsnumber | string[]OptionalNumber of items per row, each getting an equal share, OR an array of explicit widths (e.g. ["25%", "40%", "35%"]) for differently-sized columns. Only applies when direction is "row" (the default); ignored when direction is "column".
directionenumOptionalFlex direction: "row" lays children out horizontally, "column" stacks them vertically.
rowcolumnwrapenumOptionalWhether children wrap onto multiple lines when they don't fit.
nowrapwrapwrap-reversejustifyenumOptionalAlignment of children along the main axis (CSS justify-content).
flex-startflex-endcenterspace-betweenspace-aroundspace-evenlyalignenumOptionalAlignment of children along the cross axis (CSS align-items).
flex-startflex-endcenterstretchbaselinegapstringOptionalCSS gap value used as provided (e.g. "16px", "1rem", "16px 24px", "0"). With row column sizing, CSS variables and their fallbacks must resolve to a single length or percentage. Keyword gaps (normal, initial, unset, inherit, revert, revert-layer) skip the gap deduction in column widths, so a keyword that resolves to a non-zero gap can wrap columns early.
paddingstringOptionalCSS padding value for the container (e.g. "1rem" or "8px 16px").
marginstringOptionalCSS margin value for the container (e.g. "1rem" or "0 auto").
widthstringOptionalExplicit width for this container as a flex item (e.g. "50%", "300px"), useful when nesting it as a column inside a parent Container.
heightstringOptionalExplicit height for this container as a flex item (e.g. "50%", "300px"), useful when nesting it as a row inside a parent Container.
backgroundobjectOptionalContainer background (color/image/position/size/repeat/attachment).
borderobjectOptionalContainer border (width/style/color/radius).
opacitynumberOptionalContainer opacity from 0 (fully transparent) to 1 (fully opaque).