- Replace underlying checkbox input with a custom implementation
- Allow attributes that produce msgs to be passed throughAdds CSS to the Switch container.
Adds CSS to the element containing the label text.
Note that these styles don't apply to the literal HTML label element, since it contains the icon SVG as well.
Pass custom attributes through to be attached to the underlying input.
Do NOT use this helper to add css styles, as they may not be applied the way
you want/expect if underlying styles change.
Instead, please use containerCss or labelCss.
Render a switch. The boolean here indicates whether the switch is on or not.