Toggle

rendered, live
the wire — click a line to scrub
the contract — Toggle in catalog.json
{
  "type": "object",
  "properties": {
    "component": {
      "const": "Toggle"
    },
    "label": {
      "$ref": "https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString",
      "description": "What the toggle controls, stated positively: 'Email me a copy'. Required."
    },
    "value": {
      "$ref": "https://a2ui.org/specification/v1_0/common_types.json#/$defs/DataBinding",
      "description": "Data binding for the boolean answer, always {\"path\": ...}. Seed the default with updateDataModel."
    },
    "hint": {
      "$ref": "https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"
    }
  },
  "required": [
    "label",
    "value"
  ]
}
the prompt-pack — paste into your agent
### Toggle — a single yes/no

| prop    | type       | required | notes                                               |
| ------- | ---------- | -------- | --------------------------------------------------- |
| `label` | string     | yes      | state it positively: `"Email me a copy"`            |
| `value` | `{"path"}` | yes      | binds a boolean; seed the default in the data model |
| `hint`  | string     | no       |                                                     |

```
{"id":"copy_me","component":"Toggle","label":"Email me a copy","value":{"path":"/prefs/emailCopy"}}
```