---
templateId: items.switch.minimal
componentType: item
version: 1.0
imports:
  - switch._common.md
description: switch variant minimal.
---

# Purpose

Scenario overlay for `switch` items focused on `minimal` behavior.

---

# Generation Rules (MANDATORY)

1. Load `switch._common.md` and `templates/items/items._common.md` before using this overlay.
2. Inherit the family contract and add only the scenario-specific placeholders listed below.
3. Remove blocks that are not required by the final prompt before finalizing the item DSL.

---

# Variable Contract

Inherits the full family contract from `switch._common.md`. Base family requirements such as `itemName`, `layout.region`, and `layout.sequence` still apply.

## Required Variables

- None beyond the inherited family contract.

## Optional Variables

- `security.sessionStateProtection`

---

# Output Template

```apexlang
pageItem {{itemName}} (
    type: switch
    label {
        label: {{label.label}}
    }
    layout {
        sequence: {{layout.sequence}}
        region: @{{layout.region}}
        slot: {{layout.slot}}
    }
    appearance {
        template: {{appearance.template}}
    }
    security {
        sessionStateProtection: {{security.sessionStateProtection}}
    }
)
```

---

# Conditional Rendering Rules

- Keep the item block minimal and rely on the inherited family contract for anything not shown here.
- Remove optional blocks that are not populated by the final prompt.

---

# Guardrails

- Keep `switch._common.md` as the source of truth for reusable family rules.
- Keep placeholder names aligned with the inherited family contract.
- Do not reintroduce fixed demo wrappers, demo identifiers, or literal region names.
