Skip to content

Input

A family of form input components with consistent styling, built-in labels, hints, and error states.

text · email · password
AttributeDescription
labelLabel text above the field
typeInput type (text, email, password, etc.)
nameField name for form submission
valueInitial value
placeholderPlaceholder text
requiredMarks field as required
disabledDisables the field
errorError message — also sets aria-invalid and red border
hintHint text below the field
sizesm | md | lg
idForwarded to the inner <input>
<input type="text" class="ac-input__field" placeholder="Styled input">
<textarea class="ac-textarea__field" rows="3"></textarea>
<select class="ac-select__field">
<option>Option</option>
</select>