Examples
Properties
Required
bool
required
The current state of the toggle switch.
true represents the “on” state, false represents the “off” state.ValueChanged<bool>
required
Callback function called when the toggle state changes. Receives the new boolean value.
State
bool
default:"true"
Controls whether the toggle switch is interactive. When
false, the switch dims, ignores input and focus, and shows a forbidden cursor while still displaying its current on/off state.Best Practices
- Call
NeoHapticsinonChangedwhen you want press feedback. The switch does not play haptics on its own.
Behavior
- Tap anywhere on the switch, or drag horizontally, to toggle.

