Callout
Feedback

Callout

Inline alert block rendered in flow, unlike Banner, which frames a whole page region.

Component behavior

Callout displays guidance beside the content it applies to. It remains in document flow and does not interrupt reading. Use another notification mechanism for time-sensitive messages.

Use cases
  • Explaining a constraint on the section or form containing it.
  • Warnings tied to a specific choice the user is about to make.
  • Notes within documentation or a form.
Alternatives

Banner: the condition is page-wide rather than local.

Toast: it is feedback on an action that recently completed.

ValidationMessage: it is a field-level validation error.

Props

Callout extends HTMLAttributes<HTMLDivElement> (minus title).

CalloutProps props
PropTypeDefaultDescription
toneCalloutTone"info""info" | "ok" | "warn" | "err".
titleReactNode—Bold heading above the body text.
iconReactNode—Override the tone-default icon.
actionsReactNode—Action row under the body (small buttons/links).
childrenReactNode—Body text or content.

Examples

Tones

Callout tones

With title

Callout with title

Without title

Callout without title

With actions

Callout with actions
ImportTSX
import { Callout } from "@solarius/onset";
import type { CalloutTone } from "@solarius/onset";

<Callout tone="warn" title="Storage alert">
  Your workspace has used 92% of its allocated storage.
</Callout>;