<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="Dx_Gyznb7tWUagSTpqfyUWnX-7WQG3F1M9qmJVok3QZz_7eSGLXvN4KqRtfY8gdB95YYWpx8njGDX5IW6D4eZw" autocomplete="off" />
<div data-view-component="true" class="FormControl">
<label for="bar" data-view-component="true" class="FormControl-label">
Best character
</label> <input aria-describedby="validation-form-control-1477d802-aa11-4a7d-a2bf-cd0b4a7c632a caption-form-control-1477d802-aa11-4a7d-a2bf-cd0b4a7c632a" type="text" name="bar" id="bar" />
<div id="validation-form-control-1477d802-aa11-4a7d-a2bf-cd0b4a7c632a" data-view-component="true" class="FormControl-inlineValidation">
<span class="FormControl-inlineValidation--visual"><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>Something went wrong</span>
</div>
<span class="FormControl-caption" id="caption-form-control-1477d802-aa11-4a7d-a2bf-cd0b4a7c632a">
May the force be with you
</span>
</div>
</form>