{
  "blocks": [
    {
      "type": "slide",
      "name": "Slide",
      "limit": 10,
      "settings": [
        {
          "type": "image_picker",
          "id": "image",
          "label": "Image"
        },
        {
          "type": "text",
          "id": "heading",
          "label": "Heading"
        },
        {
          "type": "text",
          "id": "button_link",
          "label": "Button link"
        },
        {
          "type": "text",
          "id": "button_label",
          "label": "Button label"
        }
      ],
      "kiwi_extra": {
        "icon": "fas fa-image"
      }
    },
    {
      "type": "video",
      "name": "Video",
      "limit": 1,
      "settings": [
        {
          "type": "string",
          "id": "video_url",
          "label": "Video URL",
        }
      ],
      "kiwi_extra": {
        "icon": "fas fa-video"
      }
    }
  ]
}

Properties

type
string
required
The block type identifier. Must be unique within the section.
name
string
required
The block name shown in the theme editor.
limit
number
The maximum number of blocks of this type that can be added to the section.
settings
array
An array of settings specific to this block type. Uses the same structure as section settings.
kiwi_extra
object
Additional settings for the theme editor:
  • icon - Icon to be associated with this block type in the theme editor