Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 489 Bytes

Switch.md

File metadata and controls

21 lines (13 loc) · 489 Bytes
sidebar_position
38

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" />