Skip to content

Commit

Permalink
[docs] Add Toggle Selection Control to 'Migration From v0.x' Document (
Browse files Browse the repository at this point in the history
…#12149)

* [docs] Add Toggle Selection Control to Migration From v0.x Document

* Update migration-v0x.md
  • Loading branch information
shabareesh authored and oliviertassinari committed Jul 14, 2018
1 parent 7fdc189 commit 35ea370
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/src/pages/guides/migration-v0x/migration-v0x.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,22 @@ This will apply a change such as the following:
+<ListSubheader>Sub Heading</ListSubheader>
```

### Toggle

```diff
-import Toggle from 'material-ui/Toggle';
+import Switch from '@material-ui/core/Switch';

-<Toggle
- toggled={this.state.checkedA}
- onToggle={this.handleToggle}
-/>
+<Switch
+ checked={this.state.checkedA}
+ onChange={this.handleSwitch()}
+/>
```

### To be continued…

Have you successfully migrated your app, and wish to help the community?
Expand Down

0 comments on commit 35ea370

Please sign in to comment.