How to change switch with three state (each state has special icon)

I have done a switch with two icons in the past for the true/false state.
Now, I want to add a new state to the switch and give it a different icon. What should I do?
But the switch seems to have only two states, so is it possible?

Not by default - you would need to implement your own using the ui-template