Separators
Stay organized with collections
Save and categorize content based on your preferences.
Adding a separator between any two categories will create a line and extra space
between the two categories.

You can change the class for the separator in your JSON or XML toolbox definition.
JSON
{
"kind": "sep",
"cssConfig": {
"container": "yourClassName"
}
}
XML
<sep css-container="yourClassName"></sep>
Adding a separator between any two blocks will create a gap between the blocks.
By default every block is separated from its lower neighbour by 24 pixels.
This separation may be changed using the 'gap' attribute, which will replace the
default gap.
This allows you to create logical groups of blocks in the toolbox.

JSON
{
"kind": "flyoutToolbox",
"contents": [
{
"kind": "block",
"type":"math_number"
},
{
"kind": "sep",
"gap": "32"
},
{
"kind": "block",
"type"" "math_arithmetic"
"fields": {
"OP": "ADD"
},
},
{
"kind": "sep",
"gap": "8"
},
{
"kind": "block",
"type"" "math_arithmetic"
"fields": {
"OP": "MINUS"
},
}
]
}
XML
<xml id="toolbox" style="display: none">
<block type="math_number"></block>
<sep gap="32"></sep>
<block type="math_arithmetic">
<field name="OP">ADD</field>
</block>
<sep gap="8"></sep>
<block type="math_arithmetic">
<field name="OP">MINUS</field>
</block>
</xml>
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-13 UTC."],[],[],null,["# Separators\n\nAdding a separator between any two categories will create a line and extra space\nbetween the two categories.\n\nYou can change the class for the separator in your JSON or XML toolbox definition. \n\n### JSON\n\n {\n \"kind\": \"sep\",\n \"cssConfig\": {\n \"container\": \"yourClassName\"\n }\n }\n\n### XML\n\n \u003csep css-container=\"yourClassName\"\u003e\u003c/sep\u003e\n\nAdding a separator between any two blocks will create a gap between the blocks.\nBy default every block is separated from its lower neighbour by 24 pixels.\nThis separation may be changed using the 'gap' attribute, which will replace the\ndefault gap.\n\nThis allows you to create logical groups of blocks in the toolbox.\n\n### JSON\n\n {\n \"kind\": \"flyoutToolbox\",\n \"contents\": [\n {\n \"kind\": \"block\",\n \"type\":\"math_number\"\n },\n {\n \"kind\": \"sep\",\n \"gap\": \"32\"\n },\n {\n \"kind\": \"block\",\n \"type\"\" \"math_arithmetic\"\n \"fields\": {\n \"OP\": \"ADD\"\n },\n },\n {\n \"kind\": \"sep\",\n \"gap\": \"8\"\n },\n {\n \"kind\": \"block\",\n \"type\"\" \"math_arithmetic\"\n \"fields\": {\n \"OP\": \"MINUS\"\n },\n }\n ]\n }\n\n### XML\n\n \u003cxml id=\"toolbox\" style=\"display: none\"\u003e\n \u003cblock type=\"math_number\"\u003e\u003c/block\u003e\n \u003csep gap=\"32\"\u003e\u003c/sep\u003e\n \u003cblock type=\"math_arithmetic\"\u003e\n \u003cfield name=\"OP\"\u003eADD\u003c/field\u003e\n \u003c/block\u003e\n \u003csep gap=\"8\"\u003e\u003c/sep\u003e\n \u003cblock type=\"math_arithmetic\"\u003e\n \u003cfield name=\"OP\"\u003eMINUS\u003c/field\u003e\n \u003c/block\u003e\n \u003c/xml\u003e"]]