Getting started
Foundation
Typography
Navigation
Feedback
Forms
Switch is a checkbox alternative specifically for turning features on and off.
The default size of a switch.
A small switch should be used in table rows.
Inherits margin props.
| Name | Default | Description |
|---|---|---|
isDisabled | — | booleanWhen `true`, user is not allowed to toggle the switch. |
isChecked | — | booleanDetermines if switch is enabled. |
onChange | — | (value: boolean) => voidCallback for when user toggles the switch. |
size | — | "sm" | "md"Determines the size of the switch. |