Switch

May 29, 2024 ยท View on GitHub

import ToggleProps from './_toggle_props.mdx';

Switch

The Switch component provides a simple way to collect user input for a boolean value.

Switch Props

accessibilityMode

The accessibilityMode is a special prop for the switch variant that adds a text/icon label for on/off states. Options are text and icon

<Switch value={value} onValueChange={setValue} accessibilityMode="icon" />