Switch
A control that allows the user to toggle between checked and not checked.
Usage
Default
Checked
Disabled
Aria disabled
Components
| Component | Built using | Source |
|---|---|---|
Switch | Phlex | |
SwitchDocs | Phlex |
A control that allows the user to toggle between checked and not checked.
Switch(name: "switch")
Switch(name: "switch", checked: true)
Switch(name: "switch", disabled: true)
Switch(name: "switch", aria: {disabled: "true"})
# Supports the creation of a hidden input to be used in forms inspired by the Ruby on Rails implementation of check_box. Default is true. Switch(name: "switch", include_hidden: false)
| Component | Built using | Source |
|---|---|---|
Switch | Phlex | |
SwitchDocs | Phlex |