A directive providing a switch component to handle boolean values.