Reference Fields
Tab Group
Tab Groups provide a clean and organized way to group fields within the editor interface.
They are purely a visual grouping mechanism and do not affect your content model structure — meaning they do not introduce nested properties in your JSON data.
Settings
The Tab Group field includes one specific configuration option in addition to the basic settings.
You can find a comprehensive list of all basic settings in the 'Overview' section.
| Option | Description |
|---|---|
Tabs | Defines the collection of tabs within the group. Each tab entry contains a name (displayed in the editor UI) and a value (used internally to map fields to a specific tab). |
Define with JSON
When defining templates using JSON, this field is represented using:
- Component Name:
str-tab-group - Type:
str-tab-group - Reference ID:
str-tab-group
The settings above map into the editor.options object inside the JSON definition.
{
...
"editor": {
"name": "str-tab-group",
"type": "str-tab-group",
"propertyName": "...",
"options": {
"tabs": [
{
"name": "...", //The name displayed to the editor
"value": "..." //Value used as id
},
...
]
}
},
...
}In this example, two tabs are defined — Properties and SEO — which organize fields into separate visual sections within the editor.
How to add a field to a tab group
To place a field inside a specific tab within a Tab Group, reference the tab using the format {propertyName}-{value}, where:
{propertyName}is the Tab Group'spropertyNamefield{value}is the specific tab'svalueproperty
Example: If your Tab Group has propertyName: "tabs" and a tab with value: "properties", the reference would be "tabs-properties".
If your Tab Group has propertyName: "tabGroup" and a tab with value: "content", the reference would be "tabGroup-content".
Note: The prefix must exactly match the propertyName defined in the Tab Group's configuration.
This link is made using the tabGroup attribute inside the field’s editor.attributes object.
{
...
"editor": {
...
"attributes": {
"tabGroup": [
"tabs-properties"
]
}
},
...
},In this example, this field will appear under the Properties tab of the defined Tab Group.
Note:
The prefixtabs-must match thevaluedefined in the Tab Group’s configuration.
For instance, if a tab has"value": "seo", the corresponding field should use"tabs-seo".
Live preview
Tab Groups are UI-only elements and have no effect on Live Preview output.