Switch
UI SDK Switch with its thumb: an on/off setting that sits in a row beside its Field label.
Example
switch-demo.tsxCopy code
Installation
Copy code
Brings alongfield
Usage
ImportCopy code
API reference
Switch
Takes every prop of UI SDK Switch.
SwitchThumb
Other exports
createSwitchControllertype SwitchControllertype SwitchStateAccessibility
- An on/off setting with role switch; put it in a row beside its label.
- Grows to 44px on touch.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.