switchInputStyle top-level constant

Map<String, Object> const switchInputStyle

Visually hides the native checkbox while keeping it interactive.

Implementation

const switchInputStyle = {
  'position': 'absolute',
  'width': '1px',
  'height': '1px',
  'margin': 0,
  'opacity': 0,
  'pointer-events': 'none',
};