x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div> <strong>NOTE: </strong>The <pre style="display: inline">FormControl </pre> component cannot automatically connect the label to the provided input. Please take care to pass the <pre style="display: inline">for:</pre> attribute to <pre style="display: inline">FormControl</pre> , eg: <pre style="display: inline">Primer::Alpha::FormControl.new(label_arguments: { for: "field-name-or-id" })</pre> . - Your friendly neighborhood accessibility team.</div><br><form action="/foo" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="b-XRyrxjKjn3UKjsxSb5avd7ByyM5WaXHThF7l82xxSy8DfpCq_elD2rv9_aJO1QrMYalqqW1fN_1P5XU-lCAQ" autocomplete="off" /> <div data-view-component="true" class="FormControl"> <label for="bar-2b20c11b5142c21dfd21cf44be385c77" data-view-component="true" class="FormControl-label"> Best character </label> <input id="bar-2b20c11b5142c21dfd21cf44be385c77" type="text" name="bar" /> </div></form>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div> <strong>NOTE: </strong>The <pre style="display: inline">FormControl </pre>component cannot automatically connect the label to the provided input. Please take care to pass the <pre style="display: inline">for:</pre> attribute to <pre style="display: inline">FormControl</pre>, eg: <pre style="display: inline">Primer::Alpha::FormControl.new(label_arguments: { for: "field-name-or-id" })</pre>. - Your friendly neighborhood accessibility team.</div><br><% field_id = "bar-#{SecureRandom.hex}" %><%= form_with(url: "/foo") do |f| %> <%= render(Primer::Alpha::FormControl.new(**system_arguments, label_arguments: { for: field_id })) do |component| %> <% component.with_input do |input_arguments| %> <%= f.text_field(:bar, id: field_id, **input_arguments) %> <% end %> <% end %><% end %>No notes provided.
No params configured.
No assets to display.