Skip to Content

Switch

A boolean toggle that binds to a variable. Useful for opt-in toggles, terms acceptance, or feature preferences.

Switch Element Insert image: A Switch component on the canvas in the toggled-on state with its active color, alongside a text label

Properties

PropertyDescription
switchSizesm, md, or lg.
activeColorColor when toggled on.
inactiveColorColor when toggled off.

The switch’s state is stored as a boolean in the bound variable — true when on, false when off.

Last updated on