Skip to main content

Switch

Import

import { Switch } from "@sparrowengg/twigs-react";

Usage

Result
Loading...
<Switch size="md" />

Props

PropertyDescriptionTypeDefault
checkedstate of the Switchboolean,"indeterminate"false
defaultCheckedUncontrolled default state of Switchboolean
disabledbooleanfalse
sizeSize of the Switchsm mdsm
onChangeCallback function when Switch is clickedfunction