0.0.3 • Published 7 years ago

react-md-switch v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-md-switch

React Component Material Design Switch.

Installation

$ yarn add react-md-switch

Example

import Switch from 'react-md-switch';

<Switch
  id={'switch'}
  checked={true}
  onChange={this.onChange}
/>

Props

NameDescriptionDefault/RequiredType
idUnique identifier.requiredstring
checkedTo initialize the state.requiredbool
onChangeTo handle stateoptionalbool