AI Assistant

Overlays

Overlays sit on top of the page to demand attention or give feedback. Cherry provides two overlay elements: the Modal for blocking dialogs and the Toast for transient notifications.

The modal is a centered dialog on a primary-tinted backdrop. It has an optional title with a divider, scrollable content, and a close icon button in the corner.

VariantIncluded
With titleYes
Without titleYes

When designing modal flows, account for the three ways users dismiss it:

  1. Close button - The icon button in the top-right corner.
  2. Escape - Pressing the Escape key.
  3. Outside click - Clicking the backdrop.

Toast

Toasts are pill-shaped notifications with a semantic status icon, a message, and a close button. They stack vertically and animate in and out.

ColorIconUse for
InfoInfoNeutral information
SuccessCircle checkCompleted actions
ErrorCircle xFailures
WarningTriangle alertSituations needing caution

Reserve persistent toasts (without auto-hide) for messages that require the user's acknowledgment. Transient confirmations should dismiss themselves.

Modal and Toast can be found in the Figma Template in the Components page.