Form | SwitchToggle
SwitchToggle#
Description#
- Animated toggle switch. Returns the new state through the
toggleevent.
Props#
isOn(boolean) — Current switch state. Required.disabled(boolean) — Disables interaction. Default:false.size('small'|'medium') — Visual size. Default:'small'.activeClass(string) — Class applied when active. Default:'bg-vsk-primary'.inactiveClass(string) — Class when inactive. Default:'background'.customClass(string) — Additional classes.
Emits#
toggle— Emits[value: boolean]with the new state.
Usage#
| |