Evantis

Design System

Alerts

  • 4tones
  • 3sizes
  • 2variants
Status is never colour alone: every alert carries its own glyph shape, a hidden prefix for screen readers, and a word.

Inline

  • State the fact, then what to do.
  • An error is never a dead end: it must offer an action (call, read, ask Evantis). The code won't compile without one.
  • Error and warning interrupt (role alert); success and info don't.
  • solid is for critical, blocking states only.
Information:

Your nurse replied

Open the message to read it.
Success:

Dose logged

Oxycodone 5 mg at 08:00.

Sizes

  • LG for page-level messages: 16px title and text, 20px glyph.
  • MD is the default: 14px, 16px glyph.
  • SM inside cards and forms: 12px, 14px glyph.

Parts

  • Compose with AlertTitle, AlertDescription and AlertAction when you need more than a sentence.
  • Composed or passed as a prop, the action always sits far right, where Dismiss sits on other alerts.
  • The action is one link-style button: a verb in Title Case.

Dismiss

  • Pass onDismiss to show a Dismiss button.
  • Error alerts never offer Dismiss: they stay until the problem is fixed.
  • Dismiss hides the message; it doesn't undo what it reported.
Information:

Your nurse replied

Open the message to read it.
Success:

Dose logged

Oxycodone 5 mg at 08:00.