Last updated 4 years ago
Switches toggle the state of a single setting on or off.
import { Checkbox } from '../components' <Switch value={val} onValueChange={(val) => !val} />
Name
Type
Description
value
bool
Whether component is checked. Defaults to false.
onValueChange
(boolean) => void
Called when toggle should switch it's value.
disabled
Makes toggle disabled.