-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
switches.html
75 lines (75 loc) · 1.96 KB
/
switches.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
{{> head }}
</head>
<body>
{{> navbar }}
<main>
{{> intro}}
<div class="container">
<div class="row">
<div class="col s12 m8 offset-m1 xl7 offset-xl1">
<!-- Switches -->
<div id="switches" class="section scrollspy">
<p>Switches are special checkboxes used for binary states such as on / off</p>
<form action="#">
<div class="mb-3">
<div class="switch">
<label>
Off
<input checked type="checkbox" />
<span class="lever"></span>
On
</label>
</div>
</div>
<div>
<div class="switch">
<label>
Off
<input type="checkbox" disabled />
<span class="lever"></span>
On
</label>
</div>
</div>
</form>
<pre><code class="language-html"><xmp><!-- Switch -->
<div class="switch">
<label>
Off
<input type="checkbox">
<span class="lever"></span>
On
</label>
</div>
<!-- Disabled Switch -->
<div class="switch">
<label>
Off
<input type="checkbox" disabled>
<span class="lever"></span>
On
</label>
</div>
</xmp>
</code></pre>
</div>
</div>
<div class="col hide-on-small-only m3 xl3">
<div class="toc-wrapper">
<div style="height: 1px">
<ul class="section table-of-contents">
<li><a href="#switches">Switches</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
{{> footer }}
<script type="module" src="/src/main.ts"></script>
</body>
</html>