Switches are binary inputs that can be either on or off. They are used to toggle between two states. This is an example of a thin style switch.
Show codeHide code
vue
Switches can have a sublabel. use the sublabel prop to set the sublabel text and modify the swicth layout.
Show codeHide code
vue
Name
Type
classesOptional CSS classes to apply to the component inner elements.
Show exampleHide example
vue
idThe form input identifier.
Show exampleHide example
vue
labelAccessible label of the switch.
Show exampleHide example
vue
sublabelThe sublabel of the switch.
Show exampleHide example
vue
Name
Type
colorMain color of the switch.
Show exampleHide example
vue
elThe underlying HTMLInputElement element.
Show exampleHide example
vue
Switches are binary inputs that can be either on or off. They are used to toggle between two states. This is an example of a ball style switch.
Show codeHide code
vue
Switches can have a sublabel. use the sublabel prop to set the sublabel text and modify the swicth layout.
Show codeHide code
vue
Name
Type
classesOptional CSS classes to apply to the component inner elements.
Show exampleHide example
vue
idThe form input identifier.
Show exampleHide example
vue
labelAccessible label for the switch.
Show exampleHide example
vue
sublabelThe sublabel of the switch.
Show exampleHide example
vue
Name
Type
colorMain color of the switch.
Show exampleHide example
vue
elThe underlying HTMLInputElement element.
Show exampleHide example
vue