{
  "name": "departments-checkbox-form",
  "kind": "block",
  "primary": "form",
  "page": "/apps/user-flow/app/registration/departments/departments.contents.html",
  "slots": [],
  "nested": [
    "reg-step-header",
    "reg-departments-toggle",
    "reg-step-footer",
    "reg-step-progress"
  ],
  "attrs": {
    "data-reg-input": "",
    "action": "/site/examples/registration/org-review",
    "method": "get"
  },
  "html": "<form data-reg-input action=\"/site/examples/registration/org-review\" method=\"get\">\n        <header data-reg-heading><!-- nested: reg-step-header --></header>\n\n        <section data-reg-form><!-- nested: reg-departments-toggle --></section>\n\n        <footer><!-- nested: reg-step-footer --></footer>\n      </form>",
  "source": "apps/user-flow/app/registration/departments/departments.contents.html",
  "metadata": {
    "domain": "forms",
    "description": "Complete multi-select checkbox form — heading, an info alert, a two-column grid of labelled checkboxes (some pre-checked), a divider, a custom add-row (name input + add button) with resulting tag chips, a defer checkbox, and a submit footer. The full checkbox-grid form composition with header and footer. Use for 'checkbox form', 'multi-select form', 'form with a grid of checkboxes and an add-custom row'.",
    "keywords": [
      "checkbox",
      "form",
      "multi-select",
      "grid",
      "departments",
      "toggle",
      "options",
      "pre-checked",
      "custom",
      "add-row",
      "tag",
      "chips",
      "divider",
      "defer",
      "complete",
      "card",
      "heading",
      "footer",
      "submit",
      "continue",
      "full-form"
    ],
    "related": [
      "reg-departments-toggle",
      "form-checkbox-group",
      "reg-step-footer"
    ],
    "tags": {
      "complexity": "moderate",
      "form": "checkbox"
    }
  },
  "captured_at": "2026-06-10T14:28:57.979Z",
  "template": [
    {
      "id": "text",
      "component": "Text",
      "variant": "display",
      "textContent": "Set up your departments"
    },
    {
      "id": "text-2",
      "component": "Text",
      "color": "subtle",
      "textContent": "Pick the ones your org has today. You can rename, merge, or split these from settings later."
    },
    {
      "id": "header-2",
      "component": "Header",
      "data-reg-heading": "",
      "children": [
        "text",
        "text-2"
      ]
    },
    {
      "id": "header",
      "component": "Header",
      "data-reg-heading": "",
      "children": [
        "header-2"
      ]
    },
    {
      "id": "text-3",
      "component": "Text",
      "variant": "body",
      "slot": "content",
      "textContent": "Based on your team size (51–200) and use case (building a product), we pre-checked seven likely departments."
    },
    {
      "id": "alert",
      "component": "Alert",
      "icon": "sparkle",
      "variant": "info",
      "children": [
        "text-3"
      ]
    },
    {
      "id": "dept-engineering",
      "component": "CheckBox",
      "checked": true,
      "label": "Engineering",
      "name": "dept[engineering]"
    },
    {
      "id": "dept-product",
      "component": "CheckBox",
      "checked": true,
      "label": "Product",
      "name": "dept[product]"
    },
    {
      "id": "dept-design",
      "component": "CheckBox",
      "checked": true,
      "label": "Design",
      "name": "dept[design]"
    },
    {
      "id": "dept-sales",
      "component": "CheckBox",
      "checked": true,
      "label": "Sales",
      "name": "dept[sales]"
    },
    {
      "id": "dept-marketing",
      "component": "CheckBox",
      "checked": true,
      "label": "Marketing",
      "name": "dept[marketing]"
    },
    {
      "id": "dept-cs",
      "component": "CheckBox",
      "checked": true,
      "label": "Customer Success",
      "name": "dept[cs]"
    },
    {
      "id": "dept-ops",
      "component": "CheckBox",
      "checked": true,
      "label": "Operations",
      "name": "dept[ops]"
    },
    {
      "id": "dept-finance",
      "component": "CheckBox",
      "label": "Finance",
      "name": "dept[finance]"
    },
    {
      "id": "dept-hr",
      "component": "CheckBox",
      "label": "People / HR",
      "name": "dept[hr]"
    },
    {
      "id": "dept-legal",
      "component": "CheckBox",
      "label": "Legal",
      "name": "dept[legal]"
    },
    {
      "id": "dept-data",
      "component": "CheckBox",
      "label": "Data / Analytics",
      "name": "dept[data]"
    },
    {
      "id": "dept-security",
      "component": "CheckBox",
      "label": "Security",
      "name": "dept[security]"
    },
    {
      "id": "grid",
      "component": "Grid",
      "columns": "1 2@md",
      "gap": "2",
      "children": [
        "dept-engineering",
        "dept-product",
        "dept-design",
        "dept-sales",
        "dept-marketing",
        "dept-cs",
        "dept-ops",
        "dept-finance",
        "dept-hr",
        "dept-legal",
        "dept-data",
        "dept-security"
      ]
    },
    {
      "id": "divider",
      "component": "Divider"
    },
    {
      "id": "text-4",
      "component": "Text",
      "strong": true,
      "textContent": "Custom departments"
    },
    {
      "id": "text-5",
      "component": "Text",
      "color": "subtle",
      "size": "sm",
      "textContent": "Add anything specific to your org — e.g. \"Research\", \"Studio\", \"Foundry\"."
    },
    {
      "id": "column",
      "component": "Column",
      "gap": "2",
      "children": [
        "text-4",
        "text-5"
      ]
    },
    {
      "id": "custom-dept",
      "component": "Input",
      "name": "custom_dept",
      "placeholder": "e.g. Research"
    },
    {
      "id": "field",
      "component": "Field",
      "inline": true,
      "label": "Name",
      "children": [
        "custom-dept"
      ]
    },
    {
      "id": "button",
      "component": "Button",
      "type": "button",
      "icon": "plus",
      "text": "Add",
      "variant": "outline"
    },
    {
      "id": "row",
      "component": "Row",
      "align": "end",
      "gap": "2",
      "children": [
        "field",
        "button"
      ]
    },
    {
      "id": "tag",
      "component": "Tag",
      "text": "Research"
    },
    {
      "id": "tag-2",
      "component": "Tag",
      "text": "Studio"
    },
    {
      "id": "row-2",
      "component": "Row",
      "gap": "2",
      "children": [
        "tag",
        "tag-2"
      ]
    },
    {
      "id": "defer",
      "component": "CheckBox",
      "label": "I'll do this later from admin → workspace → departments",
      "name": "defer"
    },
    {
      "id": "text-6",
      "component": "Text",
      "color": "subtle",
      "size": "sm",
      "textContent": "Members will land in a single \"Everyone\" group until departments are configured. You can re-bucket from the directory later.",
      "data-reg-defer-hint": ""
    },
    {
      "id": "column-2",
      "component": "Column",
      "data-reg-defer-row": "",
      "children": [
        "defer",
        "text-6"
      ]
    },
    {
      "id": "section-2",
      "component": "Section",
      "data-reg-form": "",
      "children": [
        "alert",
        "grid",
        "divider",
        "column",
        "row",
        "row-2",
        "column-2"
      ]
    },
    {
      "id": "section",
      "component": "Section",
      "data-reg-form": "",
      "children": [
        "section-2"
      ]
    },
    {
      "id": "column-3",
      "component": "Column"
    },
    {
      "id": "text-7",
      "component": "Text",
      "textContent": "Back",
      "variant": "body"
    },
    {
      "id": "link",
      "component": "Link",
      "href": "/site/examples/registration/support",
      "text": "Back",
      "data-reg-back": "",
      "children": [
        "text-7"
      ]
    },
    {
      "id": "button-2",
      "component": "Button",
      "type": "submit",
      "text": "Continue",
      "variant": "primary"
    },
    {
      "id": "column-4",
      "component": "Column",
      "data-reg-actions": "",
      "children": [
        "link",
        "button-2"
      ]
    },
    {
      "id": "footer-2",
      "component": "Footer",
      "children": [
        "column-3",
        "column-4"
      ]
    },
    {
      "id": "footer",
      "component": "Footer",
      "children": [
        "footer-2"
      ]
    },
    {
      "id": "root",
      "component": "FormContainer",
      "data-reg-input": "",
      "children": [
        "header",
        "section",
        "footer"
      ]
    }
  ]
}
