Component 39 · Data display
Avatar
Represent a user, cow, farm, or device identity.
Overview
Represent a user, cow, farm, or device identity. It converts domain state into an understandable, traceable and accessible interface contract.
When to use
Use HE/Avatar when you need to represent a user, cow, farm, or device identity. Keep its role distinct from transport freshness, animal-health severity and model confidence.
Example
18JA
<div class="he-auto-cluster"><span class="he-avatar" role="img" aria-label="Cow 1842">18</span><span class="he-avatar" role="img" aria-label="Jebin Abraham">JA</span></div>Anatomy
1Identity
2Primary value
3State
4Evidence or action
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
Decorative avatars use empty alt text; identity-only avatars use the entity name.
- 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/Avatar | stable |
| Web | .he-avatar | implemented |
| Flutter | HeAvatar | implemented |
| Token root | component.avatar | generated |