Compact checkbox inputs

How is this in terms of usability?

enter image description here

It's maybe not obvious you can switch those elements, is it still an intuitive way to represent a checkbox input?