Overview
TheSwitch component renders a boolean input toggle. Switch does not support className — use only the color-specific className props below.
Styling Convention
Switch uses the
accent- prefix for all its className props (e.g., thumbColorClassName="accent-blue-500").Uniwind Bindings
Maps to the
thumbColor prop. Requires accent- prefix for color values.Maps to the
trackColor.true prop (when switch is on). Requires accent- prefix for color values.Maps to the
trackColor.false prop (when switch is off). Requires accent- prefix for color values.Maps to the
ios_backgroundColor prop. Requires accent- prefix for color values.