Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 490 Bytes

File metadata and controls

26 lines (19 loc) · 490 Bytes

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

Name Description Default/Required Type
id Unique identifier. required string
checked To initialize the state. required bool
onChange To handle state optional bool