Skip to content

Repository files navigation

react-md-switch

React Component Material Design Switch.

Installation

$ yarn add react-md-switch

Example

importSwitchfrom'react-md-switch';<Switchid={'switch'}checked={true}onChange={this.onChange}/>

Props

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

About

React Component Material Design Switch.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages