Pulse
Pulse

Components

Alert

Provide contextual feedback messages, warnings, or notifications linked directly to semantic token states.

Playground

Variant

Dismissible

Variants

Inline (No Title)

Dismissible (Interactive)

Custom Icons

Props

PropTypeDefaultDescription
variant"info" | "success" | "warning" | "danger""info"Controls background, border, text color, and default icon.
titlestring—Optional bold headline displayed above details.
childrenReactNode—Main content or descriptive message of the alert.
onClose() => void—Triggers a dismiss button on the right side if provided.
iconReactNode—Overrides the default status icon with a custom SVG or component.
classNamestring""Additional classes to append.

Usage Guidelines

When to use

  • Use for page- or section-level feedback that needs a moment of attention — danger for errors, success for confirmations, warning for caution, info for neutral context.
  • Pass onClose when the alert is genuinely dismissible and not a permanent state the user should keep seeing.

When not to use

  • Don't use Alert for a brief, one-off confirmation that doesn't need to persist on the page — use Toast instead.
  • Don't stack more than one Alert of the same severity on a single page — consolidate the message instead.

Usage