Control | ToggleControl
ToggleControl#
Description#
- Icon action button that shows
isActiveandisLoadingstates. Ideal for quick actions (play/pause, power).
Props#
icon(string) — Path to the icon. Required.alt(string) — Alternative text. Default:''.tooltip(string) —titletext of the icon. Default:''.isActive(boolean) — Active state. Default:false.isLoading(boolean) — Loading state that disables and animates. Default:false.iconClass(Record<string, boolean>) — Reactive classes for the icon.customClass(Record<string, boolean>) — Reactive classes for the container.
Emits#
click— Event when the control is pressed (if it is not loading).
Usage#
| |