Skip to content

Switch

Inputs

On/off toggle with label and description.

Props

Generated from the Zod definition. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.

PropTypeRequiredDescription
labelstringYesShort label shown with the value or control.
valuebooleanNoThe value shown, or the bound value an input reads and writes.
descriptionstringNoSupporting text under the title or label.

Used by templates

Fixed-schema templates that include Switch. Try them in the playground.