Let editors choose between multiple object shapes.

Use type: block for page-builder style sections where each item can be a different schema.

Options

Key Description
blocks List of available block definitions (e.g. [{ name: "hero", component: "hero" }]).
blockKey Key used to store the selected block type (e.g. "type").

Example

- name: sections
  label: Sections
  type: block
  list: true
  blockKey: type
  blocks:
    - name: hero
      component: hero
    - name: text
      fields:
        - name: body
          type: rich-text