Edit page
Home
Getting Started
Components
Forms
AddressSmartInputAsyncCreatableSelectAsyncSelectCheckboxCreatableSelectCurrencyInputDropzoneDropzoneImagesFormErrorFormLabelImageCropInputGroupNumberInputPasswordInputPhoneInputRadioSelectSliderInputTextInputTextMaskInputTextareaTogglePropsExamples
Typography
Utilities
Visualization Components

Toggle

Toggles allow the user to make a binary choice. (e.g. ON or OFF)

Props

className
String
disabled
Bool
false
forwardedRef
Custom
name
String
required
onChange
Func
required
value
Bool
false

Examples

Basic Toggle

The default usage passes in a boolean as the value prop and a callback for the onChange prop