For the complete documentation index, see llms.txt. This page is also available as Markdown.

Grouping Controls

Groups allow you to organise similar settings into relevant sections in the inspector.

The icon property uses SF Symbols. Please refer to the SF Symbol app for a list of available icons.

Here is an example empty group:

{
  "groups": [
    {
      "title": "Color Settings",
      "icon": "paintpalette",
      "properties": []
    }
  ]
}

Group Icon

You can specify an icon to appear next to the title of your group. The Icon property uses SF Symbols. Please refer to the SF Symbol app for a list of available icons.

Group Controls

Controls should be placed inside the properties array. The following example has a heading, a text field, and a resource dropwell inside the group.

{
  "groups": [
    {
      "title": "Hero Content",
      "icon": "textformat.size",
      "properties": [
        {
          "title": "Headline",
          "id": "heroHeadline",
          "text": {
            "default": "Launch your next product"
          }
        },
        {
          "title": "Subheading",
          "id": "heroSubheading",
          "textArea": {
            "default": "A short sentence explaining the value proposition."
          }
        },
        {
          "title": "Background Image",
          "id": "heroImage",
          "resource": {}
        }
      ]
    }
  ]
}

The following example has two groups, one for content and one for media.

Conditional Groups

Groups support the same visible key as individual controls, so an entire section can be shown or hidden based on another property's value:

Last updated

Was this helpful?