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