-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcheckboxes.html
More file actions
173 lines (171 loc) · 5.13 KB
/
checkboxes.html
File metadata and controls
173 lines (171 loc) · 5.13 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!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">
<!-- Checkboxes -->
<div id="checkbox" class="section scrollspy">
<p>
Use checkboxes when looking for yes or no answers. The
<code class="language-html">for</code> attribute is necessary to bind our custom checkbox with the input. Add the input's <code class="language-html">id</code> as
the value of the <code class="language-html">for</code> attribute of the label.
</p>
<form action="#">
<p>
<label>
<input type="checkbox" />
<span>Unchecked</span>
</label>
</p>
<p>
<label>
<input type="checkbox" checked="checked" />
<span>Checked</span>
</label>
</p>
<p>
<label>
<input type="checkbox" disabled="disabled" />
<span>Disabled</span>
</label>
</p>
<p>
<label>
<input type="checkbox" checked="checked" disabled="disabled" />
<span>Checked & Disabled</span>
</label>
</p>
<h5>Filled-in Checkbox</h5>
<p>
<label>
<input type="checkbox" class="filled-in"/>
<span>Filled in unchecked</span>
</label>
</p>
<p>
<label>
<input type="checkbox" class="filled-in" checked="checked"/>
<span>Filled in checked</span>
</label>
</p>
<p>
<label>
<input type="checkbox" class="filled-in" disabled="disabled"/>
<span>Filled in disabled</span>
</label>
</p>
<p>
<label>
<input type="checkbox" class="filled-in" checked="checked" disabled="disabled"/>
<span>Filled in checked & disabled</span>
</label>
</p>
<h5>Indeterminate Checkbox</h5>
<p>
<label>
<input id="indeterminate-checkbox" type="checkbox" />
<span>Indeterminate Style</span>
</label>
</p>
<p>
<label>
<input id="indeterminate-checkbox2" type="checkbox" disabled="disabled"/>
<span>Indeterminate Disabled</span>
</label>
</p>
</form>
<pre style="padding-top: 0px">
<span class="copyMessage">Copied!</span>
<i class="material-icons copyButton">content_copy</i>
<code class="language-html copiedText">
<xmp><form action="#">
<p>
<label>
<input type="checkbox" />
<span>Unchecked</span>
</label>
</p>
<p>
<label>
<input type="checkbox" checked="checked" />
<span>Checked</span>
</label>
</p>
<p>
<label>
<input type="checkbox" disabled="disabled" />
<span>Disabled</span>
</label>
</p>
<p>
<label>
<input type="checkbox" checked="checked" disabled="disabled" />
<span>Checked & Disabled</span>
</label>
</p>
<h5>Filled-in Checkbox</h5>
<p>
<label>
<input type="checkbox" class="filled-in"/>
<span>Filled in unchecked</span>
</label>
</p>
<p>
<label>
<input type="checkbox" class="filled-in" checked="checked"/>
<span>Filled in checked</span>
</label>
</p>
<p>
<label>
<input type="checkbox" class="filled-in" disabled="disabled"/>
<span>Filled in disabled</span>
</label>
</p>
<p>
<label>
<input type="checkbox" class="filled-in" checked="checked" disabled="disabled"/>
<span>Filled in checked & disabled</span>
</label>
</p>
<h5>Indeterminate Checkbox</h5>
<p>
<label>
<input id="indeterminate-checkbox" type="checkbox" />
<span>Indeterminate Style</span>
</label>
</p>
<p>
<label>
<input id="indeterminate-checkbox2" type="checkbox" disabled="disabled"/>
<span>Indeterminate Disabled</span>
</label>
</p>
</form>
</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="#checkbox">Checkboxes</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
{{> footer }}
<script type="module" src="/main.ts"></script>
</body>
</html>