x
1
2
3
4
5
<div class="c-input">
<label for="username" class="c-input__label">Username</label>
<p class="c-input__sub-label">Must be a pun.</p>
<input aria-invalid="false" aria-required="true" class="c-input__control" id="username" name="username" value="Sherlock Bones" type="text">
</div>
1
render(Input::Component.new(attributes:, id:, label:, name:, required:, sub_label:, type:, value:))
Param Description Input

Additional attributes for the input as a key/value hash.

The ID attribute for the input.

The label for the input.

The name attribute for the input.

Is the input required?

A descriptive sub-label for the input.

Type for the input field.

Value for the selected checkbox.