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 | — | boolean When `true`, user is not allowed to toggle the switch. |
isChecked | — | boolean Determines if switch is enabled. |
onChange | — | (value: boolean) => void Callback for when user toggles the switch. |
size | — | "sm" | "md" Determines the size of the switch. |