# widgetstate
## Syntax:
/widgetstate **{widgetName} {stateName}**
## Use Case:
Instantly switches a visual widget (such as a Button or Badge) to a specifically named state, replacing its image in $O(1)$ time without relying on reactive variable bindings.
## Arguments:
- **{widgetName}** : The unique name of the widget to target.
- **{stateName}** : The exact name of the state (configured in the Visual Widgets Editor) to switch to. Note: You can use `{default}` to revert back to the widget's default state/image.
## Examples:
1. **/widgetstate {MyBadge} {Active}**
2. **/widgetstate {CooldownIcon} {Ready}**
3. **/widgetstate {SpellAura} {default}**
## See Also:
dashboard, dashadd, dashset
