Callout

Callout is the workhorse admonition box : the primitive you reach for when a paragraph needs to say "heads up" without turning into a full section. Info, warning, danger, tip, success : each variant swaps the icon and the accent color.

Basic use

Variants

Five variants, each with its own icon and color:

Alias

Variant="error" is accepted as an alias for Variant="danger". Same rendering. Use whichever reads better in context.

Titleless

Title is optional : drop it for a bare accent box.

Text-only via attribute

For very short, single-line callouts you can pass the body as a Text attribute instead of child content : useful when authoring nested inside another component tag where wrapping in a child body reads awkwardly.

ChildContent wins when both are set.

Props

Prop Type Default Description
Variant string One of `info` | `tip` | `success` | `warning` | `danger` | `error`. Case-insensitive.
Title string? Optional bolded title above the body.
Text string? Short body content. Ignored when ChildContent is set.
ChildContent RenderFragment? Body content. Supports full markdown when authored inline in a `.md` file.

When to use

  • Aside that's important enough to survive skimming
  • Warning about a footgun mid-code-walkthrough
  • Tip that unlocks the "why" behind a design choice
  • Confirmation that a step's expected side effect is correct

When not to use

  • Ordinary prose emphasis : just write the sentence
  • Multi-paragraph rationale : promote it to a ## Note section instead
  • Stacking three callouts in a row : reflow to a single one with structure inside

See also