Component 01 · Actions
Button
Trigger an immediate action.
Overview
Trigger an immediate action. It transforms explicit intent into a command or navigation event without changing the accessible name during processing.
When to use
Use HE/Button when you need to trigger an immediate action. Keep its role distinct from transport freshness, animal-health severity and model confidence.
Example
<button class="he-button">Review herd</button><button class="he-button he-button--secondary">View evidence</button>Anatomy
1leadingIcon
2label
3trailingIcon
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
Use a verb label, expose loading with aria-busy, and keep the accessible name stable.
- 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/Button | stable |
| Web | .he-button | implemented |
| Flutter | HeButton | implemented |
| Token root | component.button | generated |