Component 05 · Forms
Text field
Capture a short free-text value.
Overview
Capture a short free-text value. It transforms operator input into a labeled domain value while preserving recoverable input through validation, delay and offline queuing.
When to use
Use HE/Text field when you need to capture a short free-text value. Keep its role distinct from transport freshness, animal-health severity and model confidence.
Example
<label class="he-field"><span class="he-field__label">Device name</span><input class="he-field__control" value="AIEdge D1"><span class="he-field__help">Unique within this farm.</span></label>Anatomy
1label
2input
3prefix
4suffix
5helper
6counter
Anatomy stays identical in Pasture and Atlantic. A responsive layout may wrap or stack parts, but reading order and focus order remain equivalent.
Variants and states
Variants
States
Accessibility
Persistent label, programmatic helper/error association, and meaningful autocomplete.
- Maintain a visible keyboard focus indicator and a logical focus sequence.
- Never rely on colour alone for operational, freshness or severity state.
- Keep touch targets at least 44 × 44 px unless the target is an inline text link.
Cross-platform contract
| Surface | Canonical name | Status |
|---|---|---|
| Figma | HE/Text field | stable |
| Web | .he-field | implemented |
| Flutter | HeTextField | implemented |
| Token root | component.textfield | generated |