Creates a switch input component.
switch input value
the ID of the input element
CSS class names
an initializer extension function