A success message works best beside the action that just completed. Keep it available long enough for someone navigating by keyboard to find it.
Worked example
<div class="box stack">
<strong role="status">✓ Draft saved</strong>
<p>Your changes are ready for review.</p>
</div>Implementation notes
When a confirmation represents a server write, show it after acceptance by the server. Optimistic UI should have a visible path for recovery on failure.
Try it yourself
Submit twice and check that each confirmation corresponds to the latest action.
Open the UI Components example →Editorial date October 10, 2026 · Published December 6, 2026