Class

CustomSwitch

CustomSwitch(props) → {React.ReactElement}

Constructor

# new CustomSwitch(props) → {React.ReactElement}

Overview

The FormControlLabel from Material-UI library with StyledSwitch as a control. For full documentation check out Material-UI docs on FormControlLabel and this tutorial.
Parameters:
Name Type Description
props Object

Any other props will be forwarded to the StyledSwitch element.

label string

The text to be used in an enclosing label element.

labelClasses Object

Override or extend the styles applied to the FormControlLabel element.

LabelProps Object

Props applied to the FormControlLabel element.

View Source Utils/Inputs/CustomSwitch.js, line 34

React.ReactElement