Skip to content

feat(cms): add schema for Container component (side-by-side items) #143

@Kneesal

Description

@Kneesal

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

  • Container component JSON schema added in CMS.
  • Component accepts items (or equivalent) as repeatable children.
  • Component registered and available where needed; GraphQL regenerated if contracts change.

Possible solution(s)

  1. Add components/sections/container.json with items (type: component, repeatable: true) and optional layout / ratio enum or string.
  2. Use a shared container-item component for each slot so items can be polymorphic (text, image, etc.).

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions