Previews

No matching results.

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
<!-- With caption -->
<div class="FormControl-radio-group-wrap">
<fieldset aria-describedby="validation-c0cfee2f-58b1-4d98-937d-a65da3a38944 caption-c0cfee2f-58b1-4d98-937d-a65da3a38944" class="">
<legend class="FormControl-label">
Question: what kind of bear is best?
</legend>
<div class="mb-2">
<span class="FormControl-caption" id="caption-c0cfee2f-58b1-4d98-937d-a65da3a38944">With a caption</span>
</div>
<div class="FormControl-spacingWrapper">
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="bears1" name="my-radio-group" id="my-radio-group_bears1" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_bears1">
Bears
</label>
</span>
</div>
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="beets1" name="my-radio-group" id="my-radio-group_beets1" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_beets1">
Beets
</label>
</span>
</div>
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="bsg1" name="my-radio-group" id="my-radio-group_bsg1" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_bsg1">
Battlestar Galactica
</label>
</span>
</div>
</div>
</fieldset>
<div class="mt-2">
<div class="FormControl-inlineValidation" id="validation-c0cfee2f-58b1-4d98-937d-a65da3a38944" 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-radio-group-wrap">
<fieldset aria-describedby="validation-19f0e81b-d40d-455d-ac7f-3263c790e70b" class="">
<legend class="sr-only FormControl-label">
Question: what kind of bear is best?
</legend>
<div class="mb-2">
</div>
<div class="FormControl-spacingWrapper">
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="bears2" name="my-radio-group" id="my-radio-group_bears2" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_bears2">
Bears
</label>
</span>
</div>
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="beets2" name="my-radio-group" id="my-radio-group_beets2" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_beets2">
Beets
</label>
</span>
</div>
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="bsg2" name="my-radio-group" id="my-radio-group_bsg2" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_bsg2">
Battlestar Galactica
</label>
</span>
</div>
</div>
</fieldset>
<div class="mt-2">
<div class="FormControl-inlineValidation" id="validation-19f0e81b-d40d-455d-ac7f-3263c790e70b" 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-radio-group-wrap">
<fieldset aria-describedby="validation-f8033a78-95b9-4c14-b565-3e376f4fbca8" class="">
<legend class="FormControl-label">
Question: what kind of bear is best?
</legend>
<div class="mb-2">
</div>
<div class="FormControl-spacingWrapper">
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="bears3" name="my-radio-group" id="my-radio-group_bears3" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_bears3">
Bears
</label>
</span>
</div>
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="beets3" name="my-radio-group" id="my-radio-group_beets3" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_beets3">
Beets
</label>
</span>
</div>
<div class="FormControl-radio-wrap">
<input class="FormControl-radio" type="radio" value="bsg3" name="my-radio-group" id="my-radio-group_bsg3" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_bsg3">
Battlestar Galactica
</label>
</span>
</div>
</div>
</fieldset>
<div class="mt-2">
<div class="FormControl-inlineValidation" id="validation-f8033a78-95b9-4c14-b565-3e376f4fbca8" 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-radio-group-wrap">
<fieldset disabled="disabled" aria-describedby="validation-474a50fe-6403-4fa3-a735-fcc56e0917b1" class="">
<legend class="FormControl-label">
Question: what kind of bear is best?
</legend>
<div class="mb-2">
</div>
<div class="FormControl-spacingWrapper">
<div class="FormControl-radio-wrap">
<input disabled="disabled" class="FormControl-radio" type="radio" value="bears4" name="my-radio-group" id="my-radio-group_bears4" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_bears4">
Bears
</label>
</span>
</div>
<div class="FormControl-radio-wrap">
<input disabled="disabled" class="FormControl-radio" type="radio" value="beets4" name="my-radio-group" id="my-radio-group_beets4" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_beets4">
Beets
</label>
</span>
</div>
<div class="FormControl-radio-wrap">
<input disabled="disabled" class="FormControl-radio" type="radio" value="bsg4" name="my-radio-group" id="my-radio-group_bsg4" />
<span class="FormControl-radio-labelWrap">
<label class="FormControl-label" for="my-radio-group_bsg4">
Battlestar Galactica
</label>
</span>
</div>
</div>
</fieldset>
<div class="mt-2">
<div class="FormControl-inlineValidation" id="validation-474a50fe-6403-4fa3-a735-fcc56e0917b1" 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
# With caption
render(Primer::Alpha::RadioButtonGroup.new(caption: "With a caption", name: "my-radio-group", label: "Question: what kind of bear is best?")) do |component|
component.radio_button(label: "Bears", value: "bears1")
component.radio_button(label: "Beets", value: "beets1")
component.radio_button(label: "Battlestar Galactica", value: "bsg1")
end
# Visually hidden label
render(Primer::Alpha::RadioButtonGroup.new(visually_hide_label: true, name: "my-radio-group", label: "Question: what kind of bear is best?")) do |component|
component.radio_button(label: "Bears", value: "bears2")
component.radio_button(label: "Beets", value: "beets2")
component.radio_button(label: "Battlestar Galactica", value: "bsg2")
end
# Full width
render(Primer::Alpha::RadioButtonGroup.new(full_width: true, name: "my-radio-group", label: "Question: what kind of bear is best?")) do |component|
component.radio_button(label: "Bears", value: "bears3")
component.radio_button(label: "Beets", value: "beets3")
component.radio_button(label: "Battlestar Galactica", value: "bsg3")
end
# Disabled
render(Primer::Alpha::RadioButtonGroup.new(disabled: true, name: "my-radio-group", label: "Question: what kind of bear is best?")) do |component|
component.radio_button(label: "Bears", value: "bears4")
component.radio_button(label: "Beets", value: "beets4")
component.radio_button(label: "Battlestar Galactica", value: "bsg4")
end

No assets to display.