Background
Need a Container component that handles content laid out side by side, with items taken as repeatable content so editors can build flexible two-column (or multi-column) sections in the CMS.
Expected outcome
- A Container component exists that accepts a list of items (e.g. repeatable component or blocks).
- Schema supports side-by-side layout configuration (e.g. ratio, order) so the web app can render content accordingly.
Acceptance criteria
Possible solution(s)
- Add
components/sections/container.json with items (type: component, repeatable: true) and optional layout / ratio enum or string.
- Use a shared
container-item component for each slot so items can be polymorphic (text, image, etc.).
References
Background
Need a Container component that handles content laid out side by side, with items taken as repeatable content so editors can build flexible two-column (or multi-column) sections in the CMS.
Expected outcome
Acceptance criteria
items(or equivalent) as repeatable children.Possible solution(s)
components/sections/container.jsonwithitems(type: component, repeatable: true) and optionallayout/ratioenum or string.container-itemcomponent for each slot so items can be polymorphic (text, image, etc.).References
apps/cms/src/components/sections/apps/cms/schema.graphqlParent: epic(cms): Experience schema for Easter-style watch page #175 Epic A (CMS)
Related (web implementation): feat(web): add Container component (side-by-side items) #153