How to create a toggle button with slate?

So what are you seeing when using the code in your question, and what do you expect to see instead?