Warning message.
A notice about a risk or condition requiring attention.
See it in context
What it is
A warning explains a potential problem while allowing the user to understand and address it. Use specific consequences and actions instead of vague alarming language.
When to use it
Use when proceeding may have an unwanted outcome.
Know the difference
A warning describes a risk; an error describes something that has already failed.
Across platforms
iOS · iPadOS · macOS · watchOS · tvOS · visionOS
Use the native platform presentation and terminology; adapt density and interaction to touch, pointer, remote, or spatial input rather than copying a phone-sized view.
Web · Android · Windows · Linux · Wear OS · Android TV
On the web, announce meaningful status changes without moving focus. On Android and desktop, keep messages near the relevant operation and follow the platform’s notification conventions.
Go to the source
Primary documentation for the pattern and its platform conventions.