# Change Icon Image in a Switch or Button

**URL:** https://discourse.nodered.org/t/change-icon-image-in-a-switch-or-button/34670
**Category:** General
**Created:** [22 October 2020 10:29 UTC](https://discourse.nodered.org/t/change-icon-image-in-a-switch-or-button/34670 "2020-10-22T10:29:55Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)
#### Post date: [22 October 2020 12:51 UTC](https://discourse.nodered.org/t/change-icon-image-in-a-switch-or-button/34670/5 "2020-10-22T12:51:11Z")

</div>

@LucaCarminati did you read this ?

> [@SWITCH & BUTTON ui node : how to change color, background color, size](https://discourse.nodered.org/t/switch-button-ui-node-how-to-change-color-background-color-size/33799):
>
> I see that a lot of us are struggling to customize their buttons in the Dashboard. So here are two very simple flows to modify using messages: the icon, the icon color, the size (for the Font Awesome icon), the background color (for the Button node) of these buttons. This First example modify Switch button : [image] The result : [image] [image] [image] [image] Note : you can clic on the icon to change his state. A msg. payload is send eg: true or false [{"id":"f451dbff.2559c8","type":"f…

---

_[View the full topic](https://discourse.nodered.org/t/change-icon-image-in-a-switch-or-button/34670)._
