Skip to content

mcnallydev/react-md-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

React Component Material Design Switch.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published