Skip to main content
v0.1 dev

Component 33 · Feedback

Toast

Confirm a background or completed action.

implementedPhase 3stable

Overview

Confirm a background or completed action. It converts domain state into an understandable, traceable and accessible interface contract.

When to use

Use HE/Toast when you need to confirm a background or completed action. Keep its role distinct from transport freshness, animal-health severity and model confidence.

Example

Atlantic · interactive specimen
Calibration saved

The new baseline is active.

<div class="he-toast" role="status"><span>✓</span><div><b>Calibration saved</b><p>The new baseline is active.</p></div><button class="he-icon-button he-icon-button--sm" aria-label="Dismiss"><svg class="he-icon" aria-hidden="true"><use href="/assets/design-system/health-eye-icons.svg#close"></use></svg></button></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

infosuccesswarningerror

States

enteringvisibleexitingpaused

Accessibility

Use a polite live region, provide enough reading time, and persist critical errors elsewhere.

  • 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

SurfaceCanonical nameStatus
FigmaHE/Toaststable
Web.he-toastimplemented
FlutterHeToastimplemented
Token rootcomponent.toastgenerated