Message

When to use

Use for inline, persistent messages tied directly to user context. error banners, validation feedback, info notices. Unlike Toast, Message stays visible until dismissed or resolved.

Error messages should tell users how to fix the problem, not just identify it.

When not to use

For temporary feedback (saved, copied), use Toast. For confirmations requiring a decision, use Dialog.

Guidelines

  • Tell users how to fix: "Please enter your email" is better than "Field is blank".
  • Match severity to content: Success for confirmations, error for failures, warn for caution.
  • Closable when appropriate: Info messages can be dismissed; error messages should persist until resolved.

How it works