Switch
The Switch component is used as a Checkbox alternative.
Usage
import { Switch } from '@binarycapsule/ui-capsules';
Knobs 🎛
large
<Switch
onChange={function}
>
Hello world
</Switch>
Props
Name | Description |
---|---|
checkedRequired | boolean The checked state of the switch. |
onChangeRequired | function The function to handle the onChange event. |
disabled | boolean(Default: false) The disabled state of the switch. |
size | "small" | "medium" | "large"(Default: "medium") The size of the switch. |
children | string(Default: null) The switch label. |