---
title: switch
description: A labelled toggle — the binary control that reads as an immediate setting rather than a form field.
status: shipped
url: https://getairframe.com/framewerk/reference/nodes/switch
---

> Part of the Framewerk docs. Index of every page: /framewerk/llms.txt

# `switch`

A labelled toggle — the binary control that reads as an immediate setting rather than a form field.

## Example

**switch**

```json
{
  "id": "f",
  "layout": {
    "_id": "root",
    "type": "column",
    "gap": 12,
    "padding": 16,
    "children": [
      {
        "_id": "s",
        "type": "switch",
        "label": "Notifications",
        "checked": true
      }
    ]
  }
}
```

## States

`checked`, `disabled`. Common to every node: `hover` / `press` / `focus` CSS bags, `showWhen` / `hideWhen`, `animate`.

## Stability

This node type is part of the format contract: adding an optional prop is additive; removing the node or narrowing an existing prop is breaking. Prop tables are generated from the schema; this page carries the prose.
