Callout

An inline message box used for status, warnings, and announcements.

Your changes have been saved.

Usage

import {
  Callout,
  CalloutAction,
  CalloutDescription,
  CalloutTitle,
} from '@epilot/spark-ui/callout'
<Callout variant="info">
  <CalloutTitle>Update available</CalloutTitle>
  <CalloutDescription>A new firmware version is ready.</CalloutDescription>
  <CalloutAction>Install</CalloutAction>
</Callout>

Examples

All variants

Information about the system.

Operation completed successfully.

Heads up: review before continuing.

Something went wrong.

With a title

Update available

A new firmware version is ready to install.

Rich content

Tariff change pending

Review the updated terms before June 30.

With actions

CalloutAction is a small Button preset. Drop it in as a child; the callout spaces it under the text.

Tariff change pending

Review the updated terms before June 30.

API Reference

Callout

PropTypeDefault
variant"info" | "success" | "warning" | "error""info"
iconMaterialSymbolIconNamevariant default
classNamestring

Renders a div and forwards all React.HTMLAttributes<HTMLDivElement> (e.g. role). The variant picks the icon by default; pass icon to override just the glyph (the variant's color is kept), e.g. an error callout showing wifi_off for an offline state.

CalloutTitle

Renders a span with title styling. Forwards all span HTML attributes plus className.

CalloutDescription

Renders a p with body styling. Forwards all paragraph HTML attributes plus className; links, strong, and other inline markup work as children.

CalloutAction

A Button preset with callout spacing baked in. It accepts all HTML button props.

PropTypeDefault
align"start" | "end" (horizontal placement within the callout)"start"

On this page