@@ -43,8 +43,8 @@ npm install @material/switch
43
43
<div class =" mdc-switch__track" ></div >
44
44
<div class =" mdc-switch__thumb-underlay" >
45
45
<div class =" mdc-switch__thumb" ></div >
46
+ <input type =" checkbox" id =" basic-switch" class =" mdc-switch__native-control" role =" switch" >
46
47
</div >
47
- <input type =" checkbox" id =" basic-switch" class =" mdc-switch__native-control" role =" switch" >
48
48
</div >
49
49
<label for =" basic-switch" >off/on</label >
50
50
```
@@ -78,8 +78,8 @@ Add the `mdc-switch--disabled` class to the `mdc-switch` element, and the `disab
78
78
<div class =" mdc-switch__track" ></div >
79
79
<div class =" mdc-switch__thumb-underlay" >
80
80
<div class =" mdc-switch__thumb" ></div >
81
+ <input type =" checkbox" id =" another-basic-switch" class =" mdc-switch__native-control" role =" switch" disabled >
81
82
</div >
82
- <input type =" checkbox" id =" another-basic-switch" class =" mdc-switch__native-control" role =" switch" disabled >
83
83
</div >
84
84
<label for =" another-basic-switch" >off/on</label >
85
85
```
@@ -93,8 +93,8 @@ Add the `mdc-switch--checked` class to the `mdc-switch` element, and the `checke
93
93
<div class =" mdc-switch__track" ></div >
94
94
<div class =" mdc-switch__thumb-underlay" >
95
95
<div class =" mdc-switch__thumb" ></div >
96
+ <input type =" checkbox" id =" another-basic-switch" class =" mdc-switch__native-control" role =" switch" checked >
96
97
</div >
97
- <input type =" checkbox" id =" another-basic-switch" class =" mdc-switch__native-control" role =" switch" checked >
98
98
</div >
99
99
<label for =" another-basic-switch" >off/on</label >
100
100
```
0 commit comments