React Component Material Design Switch.
$ yarn add react-md-switch
import Switch from 'react-md-switch';
<Switch
id={'switch'}
checked={true}
onChange={this.onChange}
/>
Name | Description | Default/Required | Type |
---|---|---|---|
id | Unique identifier. | required | string |
checked | To initialize the state. | required | bool |
onChange | To handle state | optional | bool |