How with tailwindcss make toggle button with 3 states?

Could you please provide tailwindcss 2.1 code snippet/fiddle etc… with fancy looking toggle button with 3 states : “On”, “Off”, “Idle”…

I search something like

but with 3 possible states

Thanks!