x
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!-- With caption --><div class="FormControl-check-group-wrap"> <fieldset aria-describedby="validation-ac963bf7-50e8-408c-8f44-c53a60707751 caption-ac963bf7-50e8-408c-8f44-c53a60707751" class=""> <legend class="FormControl-label"> I would go into battle with: </legend> <div class="mb-2"> <span class="FormControl-caption" id="caption-ac963bf7-50e8-408c-8f44-c53a60707751">With a caption</span> </div> <div class="FormControl-spacingWrapper"> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="picard1" name="my-check-group[]" id="my-check-group_picard1" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_picard1"> Jean-Luc Picard </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="sulu1" name="my-check-group[]" id="my-check-group_sulu1" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_sulu1"> Hikaru Sulu </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="janeway1" name="my-check-group[]" id="my-check-group_janeway1" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_janeway1"> Kathryn Janeway </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="sisko1" name="my-check-group[]" id="my-check-group_sisko1" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_sisko1"> Benjamin Sisko </label> </span> </div> </div> </fieldset> <div class="mt-2"> <div class="FormControl-inlineValidation" id="validation-ac963bf7-50e8-408c-8f44-c53a60707751" hidden="hidden"> <span class="FormControl-inlineValidation--visual" data-target="" hidden><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-check-circle-fill"> <path d="M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"></path> </svg></span> <span class=" FormControl-inlineValidation--visual" data-target=""><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill"> <path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path> </svg></span> <span></span> </div> </div></div><!-- Visually hidden label --><div class="FormControl-check-group-wrap"> <fieldset aria-describedby="validation-f56b70ff-14ea-48f6-8cab-35f8cc1e38f8" class=""> <legend class="sr-only FormControl-label"> I would go into battle with: </legend> <div class="mb-2"> </div> <div class="FormControl-spacingWrapper"> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="picard2" name="my-check-group[]" id="my-check-group_picard2" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_picard2"> Jean-Luc Picard </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="sulu2" name="my-check-group[]" id="my-check-group_sulu2" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_sulu2"> Hikaru Sulu </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="janeway2" name="my-check-group[]" id="my-check-group_janeway2" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_janeway2"> Kathryn Janeway </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="sisko2" name="my-check-group[]" id="my-check-group_sisko2" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_sisko2"> Benjamin Sisko </label> </span> </div> </div> </fieldset> <div class="mt-2"> <div class="FormControl-inlineValidation" id="validation-f56b70ff-14ea-48f6-8cab-35f8cc1e38f8" hidden="hidden"> <span class="FormControl-inlineValidation--visual" data-target="" hidden><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-check-circle-fill"> <path d="M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"></path> </svg></span> <span class=" FormControl-inlineValidation--visual" data-target=""><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill"> <path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path> </svg></span> <span></span> </div> </div></div><!-- Full width --><div class="FormControl-check-group-wrap"> <fieldset aria-describedby="validation-f80caa7a-e5cc-45d5-a2a9-86706f64c439" class=""> <legend class="FormControl-label"> I would go into battle with: </legend> <div class="mb-2"> </div> <div class="FormControl-spacingWrapper"> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="picard3" name="my-check-group[]" id="my-check-group_picard3" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_picard3"> Jean-Luc Picard </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="sulu3" name="my-check-group[]" id="my-check-group_sulu3" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_sulu3"> Hikaru Sulu </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="janeway3" name="my-check-group[]" id="my-check-group_janeway3" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_janeway3"> Kathryn Janeway </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input class="FormControl-checkbox" type="checkbox" value="sisko3" name="my-check-group[]" id="my-check-group_sisko3" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_sisko3"> Benjamin Sisko </label> </span> </div> </div> </fieldset> <div class="mt-2"> <div class="FormControl-inlineValidation" id="validation-f80caa7a-e5cc-45d5-a2a9-86706f64c439" hidden="hidden"> <span class="FormControl-inlineValidation--visual" data-target="" hidden><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-check-circle-fill"> <path d="M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"></path> </svg></span> <span class=" FormControl-inlineValidation--visual" data-target=""><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill"> <path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path> </svg></span> <span></span> </div> </div></div><!-- Disabled --><div class="FormControl-check-group-wrap"> <fieldset disabled="disabled" aria-describedby="validation-f28e016c-9c4c-46f2-86dc-7b627846b425" class=""> <legend class="FormControl-label"> I would go into battle with: </legend> <div class="mb-2"> </div> <div class="FormControl-spacingWrapper"> <div class="FormControl-checkbox-wrap"> <input disabled="disabled" class="FormControl-checkbox" type="checkbox" value="picard4" name="my-check-group[]" id="my-check-group_picard4" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_picard4"> Jean-Luc Picard </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input disabled="disabled" class="FormControl-checkbox" type="checkbox" value="sulu4" name="my-check-group[]" id="my-check-group_sulu4" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_sulu4"> Hikaru Sulu </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input disabled="disabled" class="FormControl-checkbox" type="checkbox" value="janeway4" name="my-check-group[]" id="my-check-group_janeway4" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_janeway4"> Kathryn Janeway </label> </span> </div> <div class="FormControl-checkbox-wrap"> <input disabled="disabled" class="FormControl-checkbox" type="checkbox" value="sisko4" name="my-check-group[]" id="my-check-group_sisko4" /> <span class="FormControl-checkbox-labelWrap"> <label class="FormControl-label" for="my-check-group_sisko4"> Benjamin Sisko </label> </span> </div> </div> </fieldset> <div class="mt-2"> <div class="FormControl-inlineValidation" id="validation-f28e016c-9c4c-46f2-86dc-7b627846b425" hidden="hidden"> <span class="FormControl-inlineValidation--visual" data-target="" hidden><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-check-circle-fill"> <path d="M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"></path> </svg></span> <span class=" FormControl-inlineValidation--visual" data-target=""><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill"> <path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path> </svg></span> <span></span> </div> </div></div>
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
# With captionrender(Primer::Alpha::CheckBoxGroup.new(caption: "With a caption", name: "my-check-group", label: "I would go into battle with:")) do |component| component.check_box(label: "Jean-Luc Picard", value: "picard1") component.check_box(label: "Hikaru Sulu", value: "sulu1") component.check_box(label: "Kathryn Janeway", value: "janeway1") component.check_box(label: "Benjamin Sisko", value: "sisko1")end# Visually hidden labelrender(Primer::Alpha::CheckBoxGroup.new(visually_hide_label: true, name: "my-check-group", label: "I would go into battle with:")) do |component| component.check_box(label: "Jean-Luc Picard", value: "picard2") component.check_box(label: "Hikaru Sulu", value: "sulu2") component.check_box(label: "Kathryn Janeway", value: "janeway2") component.check_box(label: "Benjamin Sisko", value: "sisko2")end# Full widthrender(Primer::Alpha::CheckBoxGroup.new(full_width: true, name: "my-check-group", label: "I would go into battle with:")) do |component| component.check_box(label: "Jean-Luc Picard", value: "picard3") component.check_box(label: "Hikaru Sulu", value: "sulu3") component.check_box(label: "Kathryn Janeway", value: "janeway3") component.check_box(label: "Benjamin Sisko", value: "sisko3")end# Disabledrender(Primer::Alpha::CheckBoxGroup.new(disabled: true, name: "my-check-group", label: "I would go into battle with:")) do |component| component.check_box(label: "Jean-Luc Picard", value: "picard4") component.check_box(label: "Hikaru Sulu", value: "sulu4") component.check_box(label: "Kathryn Janeway", value: "janeway4") component.check_box(label: "Benjamin Sisko", value: "sisko4")end
No notes provided.
No params configured.
No assets to display.