Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 312421e

Browse files
committed
WIP update readme
1 parent d009817 commit 312421e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mdc-switch/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ npm install @material/switch
4343
<div class="mdc-switch__track"></div>
4444
<div class="mdc-switch__thumb-underlay">
4545
<div class="mdc-switch__thumb"></div>
46+
<input type="checkbox" id="basic-switch" class="mdc-switch__native-control" role="switch">
4647
</div>
47-
<input type="checkbox" id="basic-switch" class="mdc-switch__native-control" role="switch">
4848
</div>
4949
<label for="basic-switch">off/on</label>
5050
```
@@ -78,8 +78,8 @@ Add the `mdc-switch--disabled` class to the `mdc-switch` element, and the `disab
7878
<div class="mdc-switch__track"></div>
7979
<div class="mdc-switch__thumb-underlay">
8080
<div class="mdc-switch__thumb"></div>
81+
<input type="checkbox" id="another-basic-switch" class="mdc-switch__native-control" role="switch" disabled>
8182
</div>
82-
<input type="checkbox" id="another-basic-switch" class="mdc-switch__native-control" role="switch" disabled>
8383
</div>
8484
<label for="another-basic-switch">off/on</label>
8585
```
@@ -93,8 +93,8 @@ Add the `mdc-switch--checked` class to the `mdc-switch` element, and the `checke
9393
<div class="mdc-switch__track"></div>
9494
<div class="mdc-switch__thumb-underlay">
9595
<div class="mdc-switch__thumb"></div>
96+
<input type="checkbox" id="another-basic-switch" class="mdc-switch__native-control" role="switch" checked>
9697
</div>
97-
<input type="checkbox" id="another-basic-switch" class="mdc-switch__native-control" role="switch" checked>
9898
</div>
9999
<label for="another-basic-switch">off/on</label>
100100
```

0 commit comments

Comments
 (0)