Bind swicth color with live preview

Bind swicth color with live preview when change directly value into input