Greenhouse Design System

Alert

Alerts communicate contextual feedback messages to the user. They support an optional title, body text, and a dismiss action.

Variants

Four variants are available to match the nature of the message:

Success

Warning

Error

Info


With title

Pass a title to add a heading above the body text. Use this when the alert needs extra emphasis or context.


With dismiss

Pass onDismiss to show a close button. Use this for non-critical alerts the user can choose to hide.


Usage

Pass a variant to control the color and icon. Use title for a heading above the body text. Add onDismiss to show a close button — the parent component is responsible for removing the alert when dismissed.